Here is a bit cleaner code…
http://jsfiddle.net/ez92a0h2/3/
it seems to me that if the node that I need to be visible is expanded and tree is scrolled at the bottom, then ‘ensureVisible’ will scroll to the last subnode of the requested node instead of the top… Is there some way how to scroll to the top of the expanded node? I tried to collapse the node first, then ensureVisible and expand again but no success…
Thanks W