Skip to content

Commit 03214ee

Browse files
authored
delay title bar adjustments until after menu bar is updated (microsoft#156688)
fixes microsoft#156483
1 parent 12b08be commit 03214ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/browser/parts/titlebar/titlebarPart.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,12 @@ export class TitlebarPart extends Part implements ITitleService {
461461
this.element.style.setProperty('--zoom-factor', zoomFactor.toString());
462462
this.rootContainer.classList.toggle('counter-zoom', this.useCounterZoom);
463463

464-
runAtThisOrScheduleAtNextAnimationFrame(() => this.adjustTitleMarginToCenter());
465-
466464
if (this.customMenubar) {
467465
const menubarDimension = new Dimension(0, dimension.height);
468466
this.customMenubar.layout(menubarDimension);
469467
}
468+
469+
runAtThisOrScheduleAtNextAnimationFrame(() => this.adjustTitleMarginToCenter());
470470
}
471471
}
472472

0 commit comments

Comments
 (0)