From 2623225b1885c49fa894f295df7c08c19fd1089d Mon Sep 17 00:00:00 2001 From: SteVen Batten <6561887+sbatten@users.noreply.github.com> Date: Thu, 5 May 2022 14:13:00 -0700 Subject: [PATCH] fixes #148824 (#148846) --- src/vs/workbench/browser/parts/titlebar/titlebarPart.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts b/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts index 3b2912f7cbe..e779741e0ac 100644 --- a/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts +++ b/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts @@ -180,8 +180,10 @@ export class TitlebarPart extends Part implements ITitleService { if (!enableTitleMenu) { // Text Title this.title.innerText = this.windowTitle.value; - this.titleDisposables.add(this.windowTitle.onDidChange(() => this.title.innerText = this.windowTitle.value)); - + this.titleDisposables.add(this.windowTitle.onDidChange(() => { + this.title.innerText = this.windowTitle.value; + this.adjustTitleMarginToCenter(); + })); } else { // Menu Title clearNode(this.title);