Skip to content

Commit e585e4b

Browse files
committed
1 parent 67e1e11 commit e585e4b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/vs/base/browser/ui/centered/centeredViewLayout.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,15 @@ export class CenteredViewLayout {
7676
}
7777

7878
resetView(view: IView): void {
79-
this.view = view;
8079
if (this.splitView) {
8180
const size = this.splitView.getViewSize(1);
8281
this.splitView.removeView(1);
83-
this.splitView.addView(toSplitViewView(this.view, () => this.height), size, 1);
82+
this.splitView.addView(toSplitViewView(view, () => this.height), size, 1);
83+
} else {
84+
this.container.appendChild(view.element);
8485
}
86+
87+
this.view = view;
8588
}
8689

8790
activate(active: boolean): void {

0 commit comments

Comments
 (0)