diff --git a/src/vs/base/browser/ui/splitview/splitview.ts b/src/vs/base/browser/ui/splitview/splitview.ts index 6b2a1d5b20d83..7be647dd58b24 100644 --- a/src/vs/base/browser/ui/splitview/splitview.ts +++ b/src/vs/base/browser/ui/splitview/splitview.ts @@ -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();