Flex - 将滚动条的位置更改为 HorizontalList 组件的顶部
默认情况下,HorizontalList 组件的水平滚动条位于底部。 有没有办法重新定位它,使其位于顶部?
为了清楚起见,我并不是指使用scrollToIndex或horizontalScrollPosition或类似的方法移动滚动位置,而是滚动条组件的实际物理位置。
任何建议将不胜感激!
By default, the Horizontal ScrollBar of a HorizontalList component will be at the bottom. Is there a way to reposition it so it is at the top?
Just for clarity, I do not mean moving the scroll position using either scrollToIndex or horizontalScrollPosition or similar, but the actual physical position of the scrollbar component.
Any suggestions would be very appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不久前也在寻找类似的东西,发现这个发布。 我最终以另一种方式解决了我的问题,所以没有使用该解决方案,但它可能适合你想要的。
I was looking for something similar myself a while ago and found this post. I eventually ended up solving my problem in another way, so didn't use that solution, however it might work for what you want.
我以前也必须做同样的事情。 我必须深入研究基类(以处理一些掩蔽/定位问题),这就是我想到的:
I've had to do the same thing previously. I had to dig around in the base classes (to handle some masking/positioning issues) and this is what I came up with: