From fceb4c4990f6b4b744c241e3d7a52f13e91dc311 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 23 Jan 2022 02:17:35 +0300 Subject: [PATCH] preserve cm height --- edit/sections-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edit/sections-editor.js b/edit/sections-editor.js index affe04c5..c77be6df 100644 --- a/edit/sections-editor.js +++ b/edit/sections-editor.js @@ -477,6 +477,7 @@ function SectionsEditor() { keepDirty = false, si = editor.scrollInfo, } = {}) { + editor.ready = false; if (replace) { sections.forEach(s => s.remove(true)); sections.length = 0; @@ -514,6 +515,7 @@ function SectionsEditor() { } container.style.removeProperty('height'); setGlobalProgress(); + editor.ready = true; } /** @param {EditorSection} section */