提交 4fcd93e5 编写于 作者: B Benjamin Pasero

debug - propagate setVisible call from viewlet to views

上级 c933774a
......@@ -540,7 +540,6 @@ export class CollapsibleViewletView extends CollapsibleView implements IViewletV
function renderViewTree(container: HTMLElement): HTMLElement {
let treeContainer = document.createElement('div');
DOM.addClass(treeContainer, 'explorer-view-content');
container.appendChild(treeContainer);
return treeContainer;
......
......@@ -469,6 +469,12 @@ export class DebugViewlet extends viewlet.Viewlet {
return Promise.as(null);
}
public setVisible(visible: boolean): TPromise<void> {
return super.setVisible(visible).then(() => {
return Promise.join(this.views.map((view) => view.setVisible(visible)));
});
}
public layout(dimension: builder.Dimension): void {
if (this.splitView) {
this.splitView.layout(dimension.height);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册