From 03214ee7b9b94d9498450b86f633b1a77b9ad6a9 Mon Sep 17 00:00:00 2001 From: SteVen Batten <6561887+sbatten@users.noreply.github.com> Date: Fri, 29 Jul 2022 12:09:35 -0700 Subject: delay title bar adjustments until after menu bar is updated (#156688) fixes #156483 --- src/vs/workbench/browser/parts/titlebar/titlebarPart.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vs') diff --git a/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts b/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts index 31f4d9b6e27..34edabed458 100644 --- a/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts +++ b/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts @@ -461,12 +461,12 @@ export class TitlebarPart extends Part implements ITitleService { this.element.style.setProperty('--zoom-factor', zoomFactor.toString()); this.rootContainer.classList.toggle('counter-zoom', this.useCounterZoom); - runAtThisOrScheduleAtNextAnimationFrame(() => this.adjustTitleMarginToCenter()); - if (this.customMenubar) { const menubarDimension = new Dimension(0, dimension.height); this.customMenubar.layout(menubarDimension); } + + runAtThisOrScheduleAtNextAnimationFrame(() => this.adjustTitleMarginToCenter()); } } -- cgit v1.2.3