Flex树垂直滚动问题

发布于 2024-08-03 02:30:34 字数 213 浏览 0 评论 0原文

我有一个 Flex 树控件,绑定到数据库中的 xml 数据。我有树项目的项目渲染器。我担心的是,当我的树项目大小很大时,如果我使用鼠标滚动,它会一次滚动 4-5 个项目。我需要它逐项滚动。当它一次滚动 4-5 个项目时,似乎存在渲染问题,因为我已经覆盖了 treeitemrenderer 的许多属性以及我放入项目渲染器中的自定义控件

是否有任何方法可以更改滚动大小?

谢谢 :)

I have a flex tree control bound to an xml data from the database. I have item renderers for the tree items. My concern is, when my tree item size is huge, if I scroll using the mouse, it scrolls in 4-5 items at a time. I need it to scroll item by item. When it scrolls 4-5 items at a time, there seems to be a rendering issue as I have overriden lot of properties of treeitemrenderer and also the custom control i have put into the item renderer

Is there any way I can change the scoll size?

Thanks :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飘落散花 2024-08-10 02:30:34

您可能想查看树的实际滚动条。这样你就可以指定repeatDelay和repeatInterval

<mx:Style>
    HScrollBar, VScrollBar {
        repeatDelay: 2000;
        repeatInterval:1000;
    }
</mx:Style>

You may want to look at the tree's actual scroll bars. With that you can specify the repeatDelay and repeatInterval

<mx:Style>
    HScrollBar, VScrollBar {
        repeatDelay: 2000;
        repeatInterval:1000;
    }
</mx:Style>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文