Skip to content

Commit

Permalink
add maximized class to workbench
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Jan 14, 2022
1 parent 09108ba commit 050dd09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vs/workbench/browser/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ enum WorkbenchLayoutClasses {
AUXILIARYBAR_HIDDEN = 'noauxiliarybar',
STATUSBAR_HIDDEN = 'nostatusbar',
FULLSCREEN = 'fullscreen',
MAXIMIZED = 'maximized',
WINDOW_BORDER = 'border'
}

Expand Down Expand Up @@ -1712,6 +1713,8 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
}

updateWindowMaximizedState(maximized: boolean) {
this.container.classList.toggle(WorkbenchLayoutClasses.MAXIMIZED, maximized);

if (this.windowState.runtime.maximized === maximized) {
return;
}
Expand Down

0 comments on commit 050dd09

Please sign in to comment.