commit 7d490b4feb860bf468af62ec15df240527963b04 parent 8ad392cfa2a950e33f290bab521738eda707f75e Author: Henry Unite <unitehenry@gmail.com> Date: Tue, 8 Sep 2020 12:23:14 -0400 fullscreen reset Diffstat:
| M | src/striveneditor.js | | | 10 | +++++++++- |
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/striveneditor.js b/src/striveneditor.js @@ -2855,7 +2855,11 @@ export default class StrivenEditor { se.overflow(); se.editor.style.maxHeight = null; - se.body.style.height = se.editor.style.height; + + se.body.style.height = se.editor.getAttribute('height'); + se.body.style.minHeight = se.editor.getAttribute('min-height'); + se.body.style.maxHeight = se.editor.getAttribute('max-height'); + opt.removeAttribute('data-fullscreen'); }; } @@ -2869,7 +2873,11 @@ export default class StrivenEditor { opt.append(createSVG(COLLAPSEICON)); se.body.style.overflow = null; + se.body.style.height = null; + se.body.style.minHeight = null; + se.body.style.maxHeight = null; + se.editor.style.maxHeight = 'inherit'; opt.setAttribute('data-fullscreen', 'active'); });