VScroll Bar and the issue of the tree

I have a component of the tree and use a DataDescriptor custom, when I dynamically add data to the DataProvider, I have a set that does not show in the tree. When these items added, indicates VScrollBar. But as the elements are 'hidden' and do not appear in the tree, VScrollBar should not be displayed. If I develop an element in the tree, then VScrollBar will disappear and the tree will look like is it supposed to be.

I tried to use (individually and in combination) invalidateSize(), invalidateDisplayList() and invalidateProperties() invalidateList() on the tree, but it isn't updated VScrollBar as it should.

Any help would be greatly appreciated, thank you.

Art

In fact I found a solution to my problem and why it is showing the VScroll bar.

In the DataDescriptor when my hidden objects are to be added to the collection, I am sending an event on the model (the event is the event to the collection of its kind add) and when the collection got this event it would update is the 'size' and then the tree thinks that his screen is larger than it really was and so VScroll bar. So I removed my expedition event if the collection would not last updated its "size".

This fixed my problem, and I hope that this helps out you some Arun.

Art

Tags: Flex

Similar Questions

Maybe you are looking for

  • Is it possible to enter/edit data "auto form fill"?

    AutoComplete data is editable?These days, you must complete all down to your inside leg measurement just to ask a simple question and she went from a nice to an essential characteristic.There are a lot of old data that could be deleted or updated day

  • OSX El Capitan or not?

    Should I update to el capitan? For the moment, I'm still on Yosemite as my uncle (a user of mac since the MPB is released), said that it has updated and he did his MBP VERY slow. I don't want that I have a new mac for Christmas and do not really want

  • Windows Vista 64 Edition Add / Remove Programs list issue?

    Hey there my good people! Today I downloaded Adobe Shockwave program on my laptop HP man love works perfectly, those I notice that, in the list add/remove program icon beside the Adobe Shockwave is simply window. Now, is this normal behavior for lapt

  • Dell Inspiron 14R WLAN Card disabled

    Hello I have a Dell Inspiron 14R running under Windows 7 64-bit. I had my PC from last November; about 7 months. I was with my PC, and all of a sudden, I started having problems with wireless. I was unable to get on the internet. Other devices on my

  • Floppy drive and CD players do not Up on my computer in Windows Explorer

    He is a teacher of Windows 7 machine.  Under computer, in Windows Explorer, show my two hard drives; but my floppy drive and CD discs do not show.  Currently, none of the disks has a disc inserted. However, if I click on computer, they all appear in