commit e64f22e449a47f0891831ecab2a416e3c665e010
parent 7f584777eba49ab97aaa0e68b7b92385aa67624b
Author: unitehenry <unitehenry@gmail.com>
Date: Thu, 27 Aug 2020 15:11:12 -0400
set body style for fullscreen
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/striveneditor.js b/src/striveneditor.js
@@ -2802,14 +2802,18 @@ export default class StrivenEditor {
se.editor.collapse();
}
-
+
+ se.overflow();
se.editor.style.maxHeight = null;
+ se.body.style.height = se.editor.style.height;
opt.removeAttribute('data-fullscreen');
} else {
blowUpElement(se.editor, '#fff', e => {
opt.innerHTML = '';
opt.append(createSVG(COLLAPSEICON));
+ se.body.style.overflow = null;
+ se.body.style.height = null;
se.editor.style.maxHeight = 'inherit';
opt.setAttribute('data-fullscreen', 'active');
});