如何将 Spark List Max Height 设置为大于默认值 10000?
我希望我的列表控件有其内容高度,因为我不需要滚动条。为了滚动目的,我在父容器中有自己的滚动器。
现在,问题是当列表控件超过 maxHeight 10000 时,它将开始剪切剩余数据。我认为解决方案是增加最大高度。
因此,如果您知道如何将 maxheight 设置为超过 10000,请帮助我
。例如......
</s:Scroller width="100%" height="100%">
</s:VGroup>
<s:List id="myList" dataProvider="arrData" useVirtualLayout="false" />
</s:VGroup>
</s:Scroller>
在这种情况下,假设我有 arrData.length = 9999999,为此 mylist 的高度将变为 10000+(假设 15000)。现在 mylist 将在 10000px 高度后被剪裁,或者列表的垂直滚动条将可见,并且因为我已经有了自己的滚动条,所以在该特定时间它将有两个滚动条。
I want my list control has its content height as I don't want scroll bars. For the scrolling purpose I have my own scroller in parent container.
Now, The problem is when list control exceeds the maxHeight 10000, then it will start clipping remaining data. I think the solution is increase the maxheight.
So, Please help me if you know how I can set maxheight more than 10000.
For Example..
</s:Scroller width="100%" height="100%">
</s:VGroup>
<s:List id="myList" dataProvider="arrData" useVirtualLayout="false" />
</s:VGroup>
</s:Scroller>
In this case assume that I have arrData.length = 9999999, and for that mylist's height will become 10000+ (Lets assume 15000). now mylist will clipped after 10000px height or list's vertical scrollbar will visible and as I adready have scroller of my own It will have two scrollbars at that particular time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以为此使用列表的皮肤类,在皮肤类中删除数据组周围的滚动条。
http://forums.adobe.com/thread/978195?tstart=0
You may use list's skinClass for this, in the skin class remove the scroller that is around the dataGroup.
http://forums.adobe.com/thread/978195?tstart=0
嘿,我找到了解决方案......
myList.scroller.maxHeight = XXXXXXXXX(任何大数字)
这将解决问题。
谢谢@Chris & @Brian 对我的问题感兴趣。
Hey I got the solution....
myList.scroller.maxHeight = XXXXXXXXX (Any Large number)
This will solve the problem.
Thanks @Chris & @Brian for taking interest in my question.
也许我在这里遗漏了一些东西,因为这似乎是一个非常基本的问题。
Maybe I'm missing something here, cos this seems like a pretty basic question.