When navigating with keys or clicking a node in the edges of the screen, the tree will automatically try to scroll the selected node into view.
Also, you can call
scrollIntoView on any node to make it visible.
Auto scrolling is built-in to the tree. Simply wrap the tree with a container that has a height and you're good.
The tree has an inner element called viewport that is scrollable.
Sometimes you don't want to wrap the tree with a scrollable container, and want the scrolling to be part of a different element.
scrollContainer option for this purpose as described in Options
Updated less than a minute ago