diff --git a/src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts b/src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts index b685149076740e2654e8ae8f921809ad1084bf3a..ba67c36f6a2500345f6e24f23d9cc3e24e6acf26 100644 --- a/src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts +++ b/src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts @@ -80,6 +80,7 @@ export class SettingsGroupTitleWidget extends Widget implements IViewZone { this._afterLineNumber = this.settingsGroup.range.startLineNumber - 2; this.editor.changeViewZones(accessor => { this.id = accessor.addZone(this); + this.layout(); }); } @@ -98,7 +99,7 @@ export class SettingsGroupTitleWidget extends Widget implements IViewZone { private layout(): void { const configuration = this.editor.getConfiguration(); const layoutInfo = this.editor.getLayoutInfo(); - this.titleContainer.style.width = layoutInfo.contentWidth - layoutInfo.verticalScrollbarWidth + 'px'; + this._domNode.style.width = layoutInfo.contentWidth - layoutInfo.verticalScrollbarWidth + 'px'; this.titleContainer.style.lineHeight = configuration.lineHeight + 3 + 'px'; this.titleContainer.style.fontSize = configuration.fontInfo.fontSize + 'px'; const iconSize = this.getIconSize();