View Full Version : tree component - how to determine widest element width?

01-23-2008, 06:37 PM
Using the standard Flash tree component and I recognize that I can't set the horizontal scroll policy to auto (like I can with vertical). I have to specify a maxHPosition value to generate the horizontal scrollbar. What I'm looking for is a way to determine what my widest element requires so I can make the maxHPosition a sufficient value.

Anyone know if a property exists for each item that will tell me what additional pixels I need beyond the tree width for maxHPosition?