diff options
author | SteVen Batten <6561887+sbatten@users.noreply.github.com> | 2022-07-29 22:09:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 22:09:35 +0300 |
commit | 03214ee7b9b94d9498450b86f633b1a77b9ad6a9 (patch) | |
tree | 8290c3aea5bb25dac939e5fa42ea6920751f0b17 /src/vs | |
parent | 12b08be500f8a307f30e92cbc3ee39ba115eab69 (diff) |
delay title bar adjustments until after menu bar is updated (#156688)
fixes #156483
Diffstat (limited to 'src/vs')
-rw-r--r-- | src/vs/workbench/browser/parts/titlebar/titlebarPart.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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()); } } |