弯曲滚动问题 - 希望是简单的问题

发布于 2024-09-27 01:46:21 字数 381 浏览 3 评论 0原文

您好,我在 Flex 中滚动时遇到问题。我正在使用带有许多标签对象的大画布。很多标签都是在屏幕外的,直到用户向下或向上滚动,这是不可避免的,因为必须显示的信息量很大,所以我考虑了替代方案,以防有人想到任何替代方案。但发生的情况是,当我滚动离开画布上的相应区域时,画布似乎会剪掉其标签。

例如,当我运行应用程序时,所有内容都在容器顶部完美可见,然后当我向下滚动画布并滚动回顶部时,内容消失了。我真的对此感到困惑,所以如果有人能解释为什么会发生这种情况或者是否有解决方法,我将不胜感激。我想象 Flex 正在尝试做一些复杂的事情,比如回收像素并实时渲染或类似的事情,但我真的不需要那样。该应用程序只是一个显示器,因此它不是交互式的,并且仅包含标签和一些滑块来表示数据。

有人有什么建议吗?

谢谢, 康纳

Hi I am having an issue with scrolling in flex. I am using a large canvas with a number of label objects. A lot of the labels are off-screen until the user scrolls down or up, this is unavoidable due to the amount of information that has to be displayed so I have considered alternatives to this in case anyone is thinking of any. What is happening though is that the canvas seems to clip its labels when I scroll away from the respective areas on the canvas.

E.g. As I run the app all the content is visible perfectly at the top of the container, then as I scroll down the canvas and scroll back to the top, the content has disappeared. I am genuinely stumped on this so I would appreciate if anyone could explain why this is happening or if there is a way around it. I would imagine that Flex is trying to do something sophisticated like recycle pixels and render in real time or something like that, but I really don't need that. The app is simply just a display so it is not interactive and will simply only contain labels and a few sliders to represent data.

Does anyone have any suggestions?

Thanks,
Conor

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

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

发布评论

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

评论(1

自由如风 2024-10-04 01:46:21

(将其作为答案而不是评论,以便我可以放入链接)

我在 TileList 上看到了消失的图像,并找到了解决方案 此处。您可能正在使用嵌入图像或画布显示对象的图像副本?我知道tileList使用项目渲染器池,这就是它出现问题的原因,但Canvas的情况并非如此。

(putting this as an Answer rather than a Comment so I can put in the link)

Ive seen dissappearing images on a TileList and found a solution here. It might be that you are using the embedded images, or a copy of an image for the canvas display objects? I know that the tileList uses a pool of item renderers and thats why it was problematic, but that is not the case for a Canvas,.

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