我可以隐藏 Flex 中 s:List 组件中的水平溢出吗?
想知道是否有任何方法可以使我的列表不会滚动以显示项目的水平端。很少有项目的长度足够长,需要它,而且水平滚动条会分散注意力。
不过,我没有看到任何属性可以控制它,所以不确定如何实现这一点。
wondering if there's any way to make it so that a list I have will not scroll to show the horizontal end of the items. Very few items go long enough to require it and the horizontal scrollbar is distracting.
I don't see any property to control that, though, so not sure how to achieve this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
List 组件包含一个处理滚动的 Scroller 外观部件。有几种方法可以摆脱水平滚动条,但最简单的可能是在创建完成事件处理程序中设置滚动条上的horizontalScrollPolicy:
希望有帮助。
The List component includes a Scroller skin part that handles scrolling. There are a few ways to get rid of the horizontal scrollbar, but the easiest is probably to set the horizontalScrollPolicy on the scroller in a creation complete event handler:
Hope that helps.