Skip to content

Commit

Permalink
[view-container] allow to customize layout
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Mar 19, 2020
1 parent 9b7476b commit 92dba34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/browser/view-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class ViewContainer extends BaseWidget implements StatefulWidget, Applica
}, this.splitPositionHandler)
});
this.panel.node.tabIndex = -1;
layout.addWidget(this.panel);
this.configureLayout(layout);

const { commandRegistry, menuRegistry, contextMenuRenderer } = this;
this.toDispose.pushAll([
Expand Down Expand Up @@ -148,6 +148,10 @@ export class ViewContainer extends BaseWidget implements StatefulWidget, Applica
}
}

protected configureLayout(layout: PanelLayout): void {
layout.addWidget(this.panel);
}

protected readonly toDisposeOnCurrentPart = new DisposableCollection();

protected updateCurrentPart(part?: ViewContainerPart): void {
Expand Down

0 comments on commit 92dba34

Please sign in to comment.