提交 716fc251 编写于 作者: S Sandeep Somavarapu

Adopt to onDidChangeBodyVisibility listener

上级 93ac85a3
......@@ -62,11 +62,7 @@ export class CustomTreeViewPanel extends ViewletPanel {
this.treeView = treeView;
this.treeView.onDidChangeActions(() => this.updateActions(), this, this.disposables);
this.disposables.push(toDisposable(() => this.treeView.setVisibility(false)));
this.updateTreeVisibility();
}
setVisible(visible: boolean): void {
super.setVisible(visible);
this.onDidChangeBodyVisibility(() => this.updateTreeVisibility());
this.updateTreeVisibility();
}
......@@ -79,11 +75,6 @@ export class CustomTreeViewPanel extends ViewletPanel {
this.treeView.show(container);
}
setExpanded(expanded: boolean): boolean {
this.treeView.setVisibility(this.isVisible() && expanded);
return super.setExpanded(expanded);
}
layoutBody(size: number): void {
this.treeView.layout(size);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册