Skip to content

Commit db5aa58

Browse files
authored
1 parent e18005f commit db5aa58

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class SettingsEditor2 extends EditorPane {
152152
private controlsElement!: HTMLElement;
153153
private settingsTargetsWidget!: SettingsTargetsWidget;
154154

155-
private splitView!: SplitView;
155+
private splitView!: SplitView<number>;
156156

157157
private settingsTreeContainer!: HTMLElement;
158158
private settingsTree!: SettingsTree;
@@ -712,19 +712,19 @@ export class SettingsEditor2 extends EditorPane {
712712
element: this.tocTreeContainer,
713713
minimumSize: SettingsEditor2.TOC_MIN_WIDTH,
714714
maximumSize: Number.POSITIVE_INFINITY,
715-
layout: (width) => {
715+
layout: (width, _, height) => {
716716
this.tocTreeContainer.style.width = `${width}px`;
717-
this.tocTree.layout(undefined, width);
717+
this.tocTree.layout(height, width);
718718
}
719719
}, startingWidth, undefined, true);
720720
this.splitView.addView({
721721
onDidChange: Event.None,
722722
element: this.settingsTreeContainer,
723723
minimumSize: SettingsEditor2.EDITOR_MIN_WIDTH,
724724
maximumSize: Number.POSITIVE_INFINITY,
725-
layout: (width) => {
725+
layout: (width, _, height) => {
726726
this.settingsTreeContainer.style.width = `${width}px`;
727-
this.settingsTree.layout(undefined, width);
727+
this.settingsTree.layout(height, width);
728728
}
729729
}, Sizing.Distribute, undefined, true);
730730
this._register(this.splitView.onDidSashReset(() => {
@@ -1545,7 +1545,7 @@ export class SettingsEditor2 extends EditorPane {
15451545
// space it has, otherwise setViewVisible results in the first panel
15461546
// showing up at the minimum size whenever the Settings editor
15471547
// opens for the first time.
1548-
this.splitView.layout(this.bodyContainer.clientWidth);
1548+
this.splitView.layout(this.bodyContainer.clientWidth, listHeight);
15491549

15501550
const firstViewWasVisible = this.splitView.isViewVisible(0);
15511551
const firstViewVisible = this.bodyContainer.clientWidth >= SettingsEditor2.NARROW_TOTAL_WIDTH;

0 commit comments

Comments
 (0)