From 050dd097021d4ab9ab6e294922702b62a8005ecd Mon Sep 17 00:00:00 2001 From: SteVen Batten Date: Fri, 14 Jan 2022 14:09:21 -0800 Subject: [PATCH] add maximized class to workbench --- src/vs/workbench/browser/layout.ts | 3 +++ 1 file changed, 3 insertions(+) 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; }