Set the tree's height by calling measureHeightOfItems()
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of gaurav1146 Sent: Sunday, May 11, 2008 4:58 AM To: [email protected] Subject: [flexcoders] Tree with adjustable height and without scroll bar Hi, I have a certain structure where I have some components in a VBox. The components are formed dynamically and are used for taking user input.One of the components is a Flex Tree with checkboxes. The problem that I am facing is that the flex tree has a specified height and stands out from other components due to spacing between the tree and the next component. Secondly when the user expands a node a scrollbar appears on the flex tree. What I want to achieve is that the tree height should be adjusted based on the expand/collapse state of its nodes. Also no scrollbar should appear on the tree. If at all there is a space issue the tree should expand to fit in all it nodes and the other components in the VBox should move accordingly. And The scrollbar should only appear for the VBox. Setting verticalScrollPolicy=off for the tree did not work as the the nodes that were further down in the tree did not appear on the screen at all. Any suggestions on how could i achieve this would be greatly appreciated. TIA gaurav

