Funny, the example doesn't work on the adobe server but if you copy the code and recompile it, it works and I get the scroll bar. Maybe it's an SDK issue; I'm using the official 3.2 SDK release. Also, if you are using an array collection as data provider, maybe you can force a refresh of the collection instead of reassigning the provider?
________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Dave Kong Sent: Wednesday, May 13, 2009 1:01 PM To: [email protected] Subject: [flexcoders] Tree does not show scrollbar after inserting items After some googling, this seems to be an existing issue with Tree refreshes and I haven't been able to find a good workaround. The issue can be repro'ed at one of Adobe's quickstart demo page: http://www.adobe.com/devnet/flex/quickstart/working_with_tree/ <http://www.adobe.com/devnet/flex/quickstart/working_with_tree/> Go to the last example, and expand all nodes in the tree on the left. Height doesn't exceed the container, so no scrollbar. Now drag elements from the right to the tree to insert them. When the height of tree extends beyond the container, no v-scrollbar is shown. But a scrollbar is shown after you collapse/expand the tree. Invalidating the tree's list/properties/displaylist didn't seem to cause a refresh. The underlying collection still returns old length when Tree processes configureScrollBars(). Can anyone suggest a good workaround? (aside from reassigning dataProvider, since that's too expensive for me.) A couple of old flexcoder threads also talks about this problem: http://tech.groups.yahoo.com/group/flexcoders/message/46541 <http://tech.groups.yahoo.com/group/flexcoders/message/46541> http://tech.groups.yahoo.com/group/flexcoders/message/37627 <http://tech.groups.yahoo.com/group/flexcoders/message/37627> Thanks!

