From 36b7766eb6921c4b62b73281f2477adf7b2d01af Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Fri, 10 Feb 2017 12:05:28 +0100 Subject: [PATCH] Fix #19189 --- .../workbench/parts/preferences/browser/preferencesWidgets.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts b/src/vs/workbench/parts/preferences/browser/preferencesWidgets.ts index b6851490767..ba67c36f6a2 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(); -- GitLab