Flex 4 滚动条步长
我有一个
围绕着
。滚动器可以工作,但我想增加滚动器的垂直步长。我已经尝试了一切,但没有成功。修改 init 函数中的 scroller.verticalScrollBar.stepSize
值似乎符合逻辑;然而,这种方法失败了。有什么想法吗?
I have a <s:Scroller>
surrounding a <s:Group>
. The scroller works, but I want to increase the vertical step size on the scroller. I've tried everything, but am having no success. Modifying the scroller.verticalScrollBar.stepSize
value in the init function seems logical; however, this approach fails. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想出了一个解决方法,需要子类化/扩展滚动条的皮肤。
这样,您只需使用自定义滚动条,而不是修改滚动条内的每个视口,
我将其放在 Flex SDK bug 的注释中,显然不应该以
https://bugs.adobe.com/jira/browse/SDK-17288
I've come up with a workaround, which requires subclassing/extending the skins of the scrollbars.
This way you only have to use a custom scroller, rather then modify each viewport inside the scroller
I put it in the comment on the Flex SDK bug, which clearly should not have been ignored to begin with
https://bugs.adobe.com/jira/browse/SDK-17288
根据OP的请求从评论中发布我的答案:
我组合了一个测试应用程序,并尝试使用 pageSize、stepSize 和其他一些属性来调整步长,但没有修改任何属性。我还遇到了这个错误报告: bugs.adobe.com/jira/browse/SDK-17288 。
Posting my answer from the comments per the OP's request:
I put together a test application and tried to adjust the step size using pageSize, stepSize and a few other properties but had no luck modifying any of the properties. I also ran across this bug report: bugs.adobe.com/jira/browse/SDK-17288.