commit 5f29bafc94cb488e06c74165a64bc2760d8488a0
parent b6c9df24444b80cf966166963080b3c6ed499ce7
Author: unitehenry <unitehenry@gmail.com>
Date: Wed, 9 Sep 2020 13:58:30 -0400
remove overflow from body on fullscreen
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/striveneditor.js b/src/striveneditor.js
@@ -2894,8 +2894,10 @@ export default class StrivenEditor {
opt.append(createSVG(EXPANDICON));
se.overflow();
- se.editor.style.maxHeight = null;
+ se.editor.style.maxHeight = null;
+ document.body.style.overflow = null;
+
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');
@@ -2912,7 +2914,7 @@ export default class StrivenEditor {
opt.innerHTML = '';
opt.append(createSVG(COLLAPSEICON));
- document.body.style.overflow = null;
+ document.body.style.overflow = 'hidden';
se.body.style.height = '100%';
se.body.style.minHeight = null;