mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-31 05:44:28 -06:00
KISS fix
This commit is contained in:
parent
2bd4b289b3
commit
04ed77f829
@ -342,13 +342,11 @@ function toggleFullScreen(editor) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove or set maxHeight
|
// 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');
|
cm.getScrollerElement().style.removeProperty('height');
|
||||||
sidebyside.style.removeProperty('height');
|
sidebyside.style.removeProperty('height');
|
||||||
}
|
} else {
|
||||||
} else {
|
|
||||||
if (editor.options.maxHeight !== false) {
|
|
||||||
cm.getScrollerElement().style.height = editor.options.maxHeight;
|
cm.getScrollerElement().style.height = editor.options.maxHeight;
|
||||||
editor.setPreviewMaxHeight();
|
editor.setPreviewMaxHeight();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user