Flex: Prevent scrollbar from covering content when automatically displayed.
Posted
by Yaba
on Stack Overflow
See other posts from Stack Overflow
or by Yaba
Published on 2008-11-15T17:52:34Z
Indexed on
2010/03/22
16:51 UTC
Read the original article
Hit count: 367
I have a canvas in Flex that shall be able only to be scrolled in vertical direction, so I set the attributes of the canvas as follows:
verticalScrollPolicy="auto" horizontalScrollPolicy="off"
The problem here is that the vertical scrollbar covers the content when it appears - altough there is enough horizontal room left. I would have expected that the content size would have been automatically adjusted.
When setting the vertical scroll policy to "on", no content is covered also.
In case I set both scroll policies to 'auto' I also get a horizontal scroll bar just for scrolling to the area that is covered by the vertical scroll bar.
Is there a workaround how I can relayout the content of the canvas when the vertical scroll bar is shown so that it does not cover any content?
© Stack Overflow or respective owner