开发者

flex scrolling issue - hopefully simple problem

开发者 https://www.devze.com 2023-01-19 10:52 出处:网络
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

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


(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,.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号