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…
This method just ensures the visibility of an element.
You could try ensureVisible and you will see when used it this will show not only first element (parent) but all the child should be in the visible scope.
If you want to use this method for some child just need to set this element.