Merge pull request #17220 from Snuffleupagus/pr-17176-followup
Also pause translation when expanding the current outline-item (PR 17176 follow-up)
This commit is contained in:
commit
87c83ab31c
@ -161,6 +161,8 @@ class BaseTreeViewer {
|
||||
if (!treeItem) {
|
||||
return;
|
||||
}
|
||||
// Pause translation when expanding the treeItem.
|
||||
this._l10n.pause();
|
||||
// Ensure that the treeItem is *fully* expanded, such that it will first of
|
||||
// all be visible and secondly that scrolling it into view works correctly.
|
||||
let currentNode = treeItem.parentNode;
|
||||
@ -171,6 +173,8 @@ class BaseTreeViewer {
|
||||
}
|
||||
currentNode = currentNode.parentNode;
|
||||
}
|
||||
this._l10n.resume();
|
||||
|
||||
this._updateCurrentTreeItem(treeItem);
|
||||
|
||||
this.container.scrollTo(
|
||||
|
Loading…
Reference in New Issue
Block a user