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);