preserve cm height

This commit is contained in:
tophf 2022-01-23 02:17:35 +03:00
parent 41f90d717f
commit fceb4c4990

View File

@ -477,6 +477,7 @@ function SectionsEditor() {
keepDirty = false, keepDirty = false,
si = editor.scrollInfo, si = editor.scrollInfo,
} = {}) { } = {}) {
editor.ready = false;
if (replace) { if (replace) {
sections.forEach(s => s.remove(true)); sections.forEach(s => s.remove(true));
sections.length = 0; sections.length = 0;
@ -514,6 +515,7 @@ function SectionsEditor() {
} }
container.style.removeProperty('height'); container.style.removeProperty('height');
setGlobalProgress(); setGlobalProgress();
editor.ready = true;
} }
/** @param {EditorSection} section */ /** @param {EditorSection} section */