PDA

View Full Version : scroll and center treenode



getimti
8 Jun 2009, 9:24 AM
Hi all,

i have a treepanel with overflow content so that i have a scrollbar on the tree. When i use ensureVisible, the node is selected, but its either at the very top or very bottom of the tree. is there a way to re-center the treenode, so its in the middle of teh treepanel? The treePanel itself is resizable.
thanks in advance
imti