滚动到所选的项目的Flex 4 Spark List组件 [英] Scroll to selected item in Flex 4 Spark List component

查看:135
本文介绍了滚动到所选的项目的Flex 4 Spark List组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置的S的元素:List组件与ActionScript中,它的工作原理,但列表不滚动到选定的项目 - 需要滚动在滚动条或鼠标。是否有可能自动滚动到选定的项目?谢谢!

I'm setting selected element in s:List component with Actionscript, it works, but List doesn't scroll to selected item -- need to scroll with scrollbar or mouse. Is it possible to auto-scroll to selected item ? Thanks !

推荐答案

尝试 S:名单方法<一href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/List.html#ensureIndexIsVisible%28%29">ensureIndexIsVisible(index:int):void.

这篇关于滚动到所选的项目的Flex 4 Spark List组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆