Well, I decided to give it a go.

The example at the bottom of the page you mention exhibits the exact problem 
you describe.

So, I downloaded the source, created a new project in Flex Builder and pasted 
it. Guess what? The newly compiled version does not exhibit the same behavior; 
The vertical scroll bar appears after you add the second item from the list on 
the right.

I wonder if it was fixed in a newer version of the SDK? What version are you 
using? I am using 3.3.0.


--- In [email protected], "Dave Kong" <davek...@...> wrote:
>
> 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/
> 
> 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/37627
> 
> Thanks!
>


Reply via email to