mmattax
mmattax

Reputation: 27670

How can I disable horizontal scrollbars in Flex components?

I have a few GridItem components that gets filled with dynamic data. Sometimes this data longer than the GridItem's fixed width, causing the GridItem to get a horizontal scrollbar. How can I disable this (I'm assuming you can...)

Is there a general style that handles this for other Flex components as well?

Thanks.

Upvotes: 13

Views: 21938

Answers (1)

Dave DuPlantis
Dave DuPlantis

Reputation: 6572

Some Flex components, including the GridItem, have a Common property called horizontalScrollPolicy. Setting this to off will prevent a horizontal scroll bar from appearing. (There is a similar property for vertical scroll bars, verticalScrollPolicy.)

The other options are on for always on and the default value, auto, for showing it when needed.

The complete description of this property for GridItem and other Containers in Flex 3 can be found here.

Upvotes: 24

Related Questions