Flex:自动显示时防止滚动条覆盖内容 [英] Flex: Prevent scrollbar from covering content when automatically displayed

查看:37
本文介绍了Flex:自动显示时防止滚动条覆盖内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 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.

如果我将两个滚动策略都设置为自动",我还会得到一个水平滚动条,用于滚动到垂直滚动条覆盖的区域.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆