View Full Version : scrolling tree node into view without horizontal scrolling

25 Aug 2010, 8:28 AM

I have a tree that has up to 3 folder levels. I have a function that explodes part of the tree from the server to a leaf, and then I want to scroll that leaf into view. The only means I found was node.ensureVisible, but its behavior is very bad for my ui, in that it scrolls the narrow panel horizontally as well as vertically, so that the text on the leaf is leftmost in the visible area of the panel. The parent structure is no longer visible, and it doesn't even show the icon. Is there another way to scroll a node into view without scrolling it horizontally?