开发者

Flex 4 Scroller Step Size

开发者 https://www.devze.com 2023-02-05 17:51 出处:网络
I have a <s:Scroller> surrounding a <s:Group>.The scroller works, but I want to increa开发者_开发百科se the vertical step size on the scroller.I\'ve tried everything, but am having no succ

I have a <s:Scroller> surrounding a <s:Group>. The scroller works, but I want to increa开发者_开发百科se 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?


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消