Scroll bars in Flex

13 01 2010

I’ve just been doing some work with scroll bars in Flex. I used the standard HScrollBar and set my maximumScrollPosition and minimumScrollPosition, but the thumb (the little rectangle between the two buttons) was staying a standard size. I have now found out this is because you also need to set the pageSize property. So I set this to be the same as the maximumScrollPosition property, and like magic, my thumb changes size depending on how much it has to scroll through. Excellent!