fix init layout interrupted by editor group resize.

This commit is contained in:
rebornix
2021-06-02 16:59:08 -07:00
parent a2a6112766
commit 2356d7c5b7
@@ -291,6 +291,10 @@ export class CodeCell extends Disposable {
}
private onCellWidthChange(): void {
if (!this.templateData.editor.hasModel()) {
return;
}
const realContentHeight = this.templateData.editor.getContentHeight();
this.viewCell.editorHeight = realContentHeight;
this.relayoutCell();