2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-30 13:24:28 -06:00
This commit is contained in:
Nick Denry 2020-06-03 22:09:01 +03:00
parent 2bd4b289b3
commit 04ed77f829

View File

@ -342,13 +342,11 @@ function toggleFullScreen(editor) {
}
// Remove or set maxHeight
if (cm.getOption('fullScreen')) {
if (editor.options.maxHeight !== false) {
if (editor.options.maxHeight !== false) {
if (cm.getOption('fullScreen')) {
cm.getScrollerElement().style.removeProperty('height');
sidebyside.style.removeProperty('height');
}
} else {
if (editor.options.maxHeight !== false) {
} else {
cm.getScrollerElement().style.height = editor.options.maxHeight;
editor.setPreviewMaxHeight();
}