提交 36b7766e 编写于 作者: S Sandeep Somavarapu

Fix #19189

上级 03229128
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册