提交 3bec9a34 编写于 作者: R rebornix

Center layout validate can be earlier than widget creation.

上级 43ae69de
......@@ -849,7 +849,11 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
}
isLayoutCentered(): boolean {
return this.centeredLayoutWidget.isActive();
if (this.centeredLayoutWidget) {
return this.centeredLayoutWidget.isActive();
}
return false;
}
private doCreateGridControl(options?: IEditorPartCreationOptions): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册