I'm not sure I completely understand your issue, but you should be able
to set the verticalScrollPosition property on Tree to the row index of
the newly added (or expanded) row and that will set the scrollbar
appropriately so that that row is in view. 

Be sure to set the verticalScrollPosition after all the work has
completed for the adding of new rows and expanding of nodes. 

Btw - what are you doing that causes the Tree to crash?

deepa

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Diego Guebel
Sent: Wednesday, January 17, 2007 10:16 AM
To: [email protected]
Subject: [flexcomponents] updating scrollbar on a tree component

Hi there,
I just developed a tree that has the ability to add children on demand.
It  
works just fine.
I want to be able to automatically pushed the rows up so that newly  
expanded rows are available without user scrolling.
I've tried using different methods from the scrollbar classes with no  
luck. Although I could scroll the rows it craches the tree.

Any clue?

Thanks in advance, Diego.


 
Yahoo! Groups Links



Reply via email to