remove layout call in output component init (#15905)

This commit is contained in:
Lucy Zhang
2021-06-28 14:48:44 -07:00
committed by GitHub
parent c3e0958f2d
commit 189fe762a9

View File

@@ -54,7 +54,6 @@ export class OutputComponent extends CellView implements OnInit, AfterViewInit {
ngOnInit() {
this._register(this._themeService.onDidColorThemeChange(event => this.updateTheme(event)));
this.loadComponent();
this.layout();
this._initialized = true;
this._register(Event.debounce(this.cellModel.notebookModel.layoutChanged, (l, e) => e, 50, /*leading=*/false)
(() => this.layout()));