Hi All,

Trying to resize my tree control on the itemOpen and itemClose events but
cant figure out how to determine the right height/width. The UI design
dictates that the scrolling of the tree control is managed by a parent VBox.
So I need the tree to resize to force scrolling on the parent container, but
unfortunately the tree does not resize when nodes are expanded or collapsed.

I have been reading the doc's and found the tree.measureHeightOfItems() and
tree.measureWidthOfItems() but am having trouble figuring out what index and
count to specify for the calculation. I am hoping I can assign the new
measurement back to the tree.height property to force the resize.

The tree dataProvider is XML providing a directory hierarchy on the server
to be presented. The tree gives me a selectedIndex, the TreeEvent gives me
the XML item that the open/close event has performed on but I am not sure
how to use these parameters to measureHeightOfItems(index:int, count:int)
same for measureWidthOfItems(...).

Any help much appreciated.

-Greg

Reply via email to