diff --git a/src/vs/workbench/browser/layout.ts b/src/vs/workbench/browser/layout.ts index 7b89e9e73a9e6..84437d7a907d2 100644 --- a/src/vs/workbench/browser/layout.ts +++ b/src/vs/workbench/browser/layout.ts @@ -93,6 +93,7 @@ enum WorkbenchLayoutClasses { AUXILIARYBAR_HIDDEN = 'noauxiliarybar', STATUSBAR_HIDDEN = 'nostatusbar', FULLSCREEN = 'fullscreen', + MAXIMIZED = 'maximized', WINDOW_BORDER = 'border' } @@ -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; }