Fixed scroll issue in the browser tree when navigating using the keyboard.

This commit is contained in:
Khushboo Vashi
2021-11-15 18:26:16 +05:30
committed by Akshay Joshi
parent 053519aef6
commit cc38bc132e
4 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -140,12 +140,12 @@ export class Tree {
await this.tree.toggleDirectory(item);
}
async select(item, ensureVisible=false) {
await this.tree.setActiveFile(item, ensureVisible);
async select(item, ensureVisible=false, align='auto') {
await this.tree.setActiveFile(item, ensureVisible, align);
}
async selectNode(item, ensureVisible=false) {
this.tree.setActiveFile(item, ensureVisible);
async selectNode(item, ensureVisible=false, align='auto') {
this.tree.setActiveFile(item, ensureVisible, align);
}
async unload(item) {