commit 459d69dd6c2f6206431c1ffdf981f5b75752c215
parent 3b876cb0902ecd87dc75cc59facfc5c95cc8536d
Author: unitehenry <unitehenry@gmail.com>
Date: Fri, 11 Sep 2020 16:39:41 -0400
set the overflow after body height is applied on fullscreen collapse
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/striveneditor.js b/src/striveneditor.js
@@ -2890,9 +2890,7 @@ export default class StrivenEditor {
opt.innerHTML = '';
opt.append(createSVG(EXPANDICON));
-
- se.overflow();
-
+
se.editor.style.maxHeight = null;
document.body.style.overflow = null;
@@ -2900,6 +2898,8 @@ export default class StrivenEditor {
se.body.style.minHeight = se.editor.getAttribute('min-height');
se.body.style.maxHeight = se.editor.getAttribute('max-height');
+ se.overflow();
+
opt.removeAttribute('data-fullscreen');
};
}