Re-measuring custom item renderer on a List

Posted by leolobato on Stack Overflow See other posts from Stack Overflow or by leolobato
Published on 2009-04-16T17:50:38Z Indexed on 2010/03/24 15:03 UTC
Read the original article Hit count: 258

Filed under:
|

I'm writing an Adobe Air client to a service similar to Twitter.

On the timeline (List component) I have a custom item renderer which is basically a Canvas with a fixed-width Image and a Text control, which is multi-line.

If the text is long enough to change the Canvas height, it will only be resized if I manually change the width of the Window, forcing a redraw of all renderers. If I simply scroll through the List, all "new" renderers will have the minimum height possible (which is the Image height).

Any ideas on how to force the re-measurement of the renderer when I set it's data?

Thanks in advance! :)

© Stack Overflow or respective owner

Related posts about flex

Related posts about air