don't fit to content on clicking the add button

This commit is contained in:
tophf 2020-10-10 00:21:22 +03:00
parent a8248bd829
commit 858fa874ae

View File

@ -568,7 +568,10 @@ function createSectionsEditor({style, onTitleChanged}) {
container.appendChild(section.el);
}
section.cm[forceRefresh ? 'refresh' : 'refreshOnView']();
if (!base || init.code) {
// Fit a) during startup or b) when the clone button is clicked on a section with some code
fitToContent(section);
}
updateSectionOrder();
section.onChange(updateLivePreview);
updateLivePreview();