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!



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: