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

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

问题描述

我正在使用 Actionscript 设置 s:List 组件中的选定元素,它可以工作,但 List 不会滚动到所选项目——需要使用滚动条或鼠标滚动.是否可以自动滚动到所选项目?谢谢!

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:List 方法 ensureIndexIsVisible(index:int):void.

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

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