Skip to content

Commit

Permalink
#27823 Fix size is not updated when header is toggled
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Jun 18, 2017
1 parent 654adde commit 484d69c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/vs/base/browser/ui/splitview/splitview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,22 @@ export abstract class AbstractCollapsibleView extends HeaderView {
this.updateSize();
}

showHeader(): boolean {
const result = super.showHeader();
if (result) {
this.updateSize();
}
return result;
}

hideHeader(): boolean {
const result = super.hideHeader();
if (result) {
this.updateSize();
}
return result;
}

dispose(): void {
if (this.headerClickListener) {
this.headerClickListener.dispose();
Expand Down

0 comments on commit 484d69c

Please sign in to comment.