Skip to content

Commit 8440cbc

Browse files
committed
Scroll to the top earlier after search
Fixes microsoft#135134
1 parent 5350eaa commit 8440cbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,9 +1372,9 @@ export class SettingsEditor2 extends EditorPane {
13721372
this.tocTree.expandAll();
13731373
}
13741374

1375+
this.settingsTree.scrollTop = 0;
13751376
this.refreshTOCTree();
13761377
this.renderTree(undefined, true);
1377-
this.settingsTree.scrollTop = 0;
13781378
return result;
13791379
});
13801380
}

0 commit comments

Comments
 (0)