Skip to content

Commit

Permalink
types / comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Saira-A committed Aug 27, 2024
1 parent 892453c commit 82c8472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,9 @@ export class ContentLeftPanel extends LeftPanel<ContentLeftPanelConfig> {
selectCurrentTreeNodeByCanvas(): void {
if (this.treeView) {
let node: TreeNode | null = null;
const currentCanvasTopRangeIndex = this.getCurrentCanvasTopRangeIndex();
const selectedTopRangeIndex = this.getSelectedTopRangeIndex();
const usingCorrectTree =
const currentCanvasTopRangeIndex: number = this.getCurrentCanvasTopRangeIndex();
const selectedTopRangeIndex: number = this.getSelectedTopRangeIndex();
const usingCorrectTree: boolean =
currentCanvasTopRangeIndex === selectedTopRangeIndex;
let range: Range | null = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export class TreeView extends BaseView<ContentLeftPanel> {
this.treeComponent.expandParents(node, true); // Expand node parents
const link: Element | undefined = this.$tree.find("#tree-link-" + node.id)[0];
if (link) {
//commented out as bug where scrolls to wrong node eg in Villanova collection
// link.scrollIntoViewIfNeeded();
}

Expand Down

0 comments on commit 82c8472

Please sign in to comment.