don't fit to content on clicking the add button
This commit is contained in:
parent
a8248bd829
commit
858fa874ae
|
@ -568,7 +568,10 @@ function createSectionsEditor({style, onTitleChanged}) {
|
||||||
container.appendChild(section.el);
|
container.appendChild(section.el);
|
||||||
}
|
}
|
||||||
section.cm[forceRefresh ? 'refresh' : 'refreshOnView']();
|
section.cm[forceRefresh ? 'refresh' : 'refreshOnView']();
|
||||||
fitToContent(section);
|
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();
|
updateSectionOrder();
|
||||||
section.onChange(updateLivePreview);
|
section.onChange(updateLivePreview);
|
||||||
updateLivePreview();
|
updateLivePreview();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user