pull/148752/head^2
SteVen Batten 2022-05-05 14:13:00 -07:00 committed by GitHub
parent c9240437a5
commit 2623225b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

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