David, I just wrestled with a variable height itemRenderer.  I could not
get any of the containers to behave correctly.  Since the
ListItemRenderer handled varialbe heights I cloned that for my renderer
and it worked fine.

 

For sure look at the code of ListItemRenderer, it is quite clear and
easy to understand.  You might even be able to make the measure logic
work in a container-based renderer.  I would like to understand the
layout process well enough to do this myself.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of David Ham
Sent: Friday, September 07, 2007 2:44 PM
To: [email protected]
Subject: [flexcoders] Re: Unwanted scrollbars on my List
itemRenderer--measure() help?

 

Alex,

Thanks for the response. I had thought about that and had commented
out the image, and got the same result. 

Should I subclass ListItemRenderer instead of HBox? Is there something
in the measure() or invalidation methods that I'm not doing?

Also, I notice that when I scroll the list, items that are below the
scroll are showing scrollbars when they scroll into view (I hope that
makes sense...); is there an invalidation method I can call on the
list itself that would prevent this?

Thanks again, I really appreciate the help.

OK
DAH

 

Reply via email to