I have a panel that houses a tree control. I have noticed that the 
tree's horizontal scrollbar has a bad habit of appearing when it 
shouldn't, so I had decided to set its hScrollPolicy to "off", and 
thereafter turning it on manually as needed.

In order for this to be possible, I need to know the width of the tree 
after a node has been opened. This is because an opened node could 
effectively make the tree width wider, depending on how long the text 
of the child nodes are.

Checking the documentation, it seems like the method, calculateWidth
(), is my answer. However, doing tree.calculateWidth() always returns 
NaN, making it useless.

Am I using it wrong? Or is it even known to work?

Any feedback from anyone would be greatly appreciated, because I need 
to make my tree component behave. Thanks.




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to