提交 e585e4bf 编写于 作者: J Joao Moreno

fixes #52409

上级 67e1e118
......@@ -76,12 +76,15 @@ export class CenteredViewLayout {
}
resetView(view: IView): void {
this.view = view;
if (this.splitView) {
const size = this.splitView.getViewSize(1);
this.splitView.removeView(1);
this.splitView.addView(toSplitViewView(this.view, () => this.height), size, 1);
this.splitView.addView(toSplitViewView(view, () => this.height), size, 1);
} else {
this.container.appendChild(view.element);
}
this.view = view;
}
activate(active: boolean): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册