Flex:自动显示时,防止滚动条覆盖内容 [英] Flex: Prevent scrollbar from covering content when automatically displayed
问题描述
我在Flex中有一个画布,只能在垂直方向滚动,所以我设置画布的属性如下:
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.
将垂直滚动策略设置为on时,不会包含内容。
When setting the vertical scroll policy to "on", no content is covered also.
如果我将两个滚动策略都设置为auto,我还会得到一个水平滚动条,用于滚动到垂直滚动条所覆盖的区域。
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?
推荐答案
这是一个错误。有关解决方法,请参见 Flex verticalScrollPolicy错误 。
It's a bug. See Flex verticalScrollPolicy bug for a workaround.
这篇关于Flex:自动显示时,防止滚动条覆盖内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!