feedTree: amend previous to check that nodes are actually there (2)
This commit is contained in:
parent
42e0c7a420
commit
c7c9c5fb0a
|
@ -273,6 +273,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"],
|
|||
setTimeout(() => {
|
||||
$("headlines-frame").focus();
|
||||
|
||||
if (treeNode) {
|
||||
const node = treeNode.rowNode;
|
||||
const tree = this.domNode;
|
||||
|
||||
|
@ -282,6 +283,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"],
|
|||
$("feedTree").scrollTop = node.offsetTop;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue