I have a TileList in flex, and need to be able to detect if the scroll bars are shown or not, so I can change the size of the items it is laying out.
ScrollPolicy is set to auto, but I need a variable like CurrentScrollPolicy which will change from off to on depending on the content.
Thanks
Thanks eBuildy, your right!
I have created an example that also takes into account the fact that scroll bars get hidden when not needed rather than set back to null:
Thanks for the help.
You need to check the verticalScrollBar. If its null then there is no scrollbar. If it is not null then there is a scrollbar.
I used really simple trick to get around this issue. Set the scroll position to the maximum since it will always be zero when there are no scroll bars if you check it and it is above zero add hight to the element because there must be scroll bars.
Or, in case you don't want to override the list, you could have something like
Cheers!