Okay, here's what I'm doing. I have an <mx:List> who
uses an <mx:Tree> component as the item renderer. I've gotten
that to work just fine; the problem I'm having is with resizing the
component to the current shape of the tree. I know how to do a
resize and I have the list's variableRowHeight property set to
true, so it does resize and work generally. All I'm trying to do is
get the itemRenderer component to resize itself to
Tree.currentExpandedHeight unfortunately that is an
imaginary property. Does anyone else know of how to find that out?
Who can make my imagination reality?
I just need to find the
current vertical height of a tree component as it sits fully
expanded or half expanded, or fully collapsed. I'll then resize on
the fly as it expands and contracts.
there is a private function in the tree.as class:
private function getVisibleChildrenCount(item:Object):int that I can use by multiplying how many children there are by
how tall each item "physically" displays on the screen as, but I
want to get that publicly. I don't want to go about hacking the
tree.as code, that's poor form in the highest. Does anybody else
have any ideas...