diff --git a/js/FeedTree.js b/js/FeedTree.js index 6b6189a4a..b20b5eb20 100755 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -270,8 +270,17 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"], this.focusNode(treeNode); // focus headlines to route key events there - setTimeout(function() { + setTimeout(() => { $("headlines-frame").focus(); + + const node = treeNode.rowNode; + const tree = this.domNode; + + // scroll tree to selection if needed + if (node.offsetTop < tree.scrollTop || node.offsetTop > tree.scrollTop + tree.clientHeight) { + $("feedTree").scrollTop = node.offsetTop; + } + }, 0); } },