Skip to content

Commit

Permalink
additional fix for hidden maximized panel
Browse files Browse the repository at this point in the history
refs #80366
  • Loading branch information
sbatten committed Sep 25, 2019
1 parent fb7fb3e commit 817eb6b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vs/workbench/browser/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,11 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
}
}

// If not maximized and hiding, unmaximize before hiding to allow caching of size
if (this.isPanelMaximized() && hidden) {
this.toggleMaximizedPanel();
}

// Propagate to grid
this.workbenchGrid.setViewVisible(this.panelPartView, !hidden);

Expand Down

0 comments on commit 817eb6b

Please sign in to comment.