Could you be using the wrong source for Flex?  Your findings don't make
sense.

 

You are calling invalidateSize on the renderer I presume?

 

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Tuesday, June 03, 2008 3:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to remeasure itemRenderer

 

I want to add something to an itemRenderer in a List that will make it 
taller. I've set the List's variableRowHeight to true.

However, when I set invalidateSize() in my click handler, the measure() 
method never happens.

I've stepped through the code in the debugger, and narrowed it down to 
line 4487 (itemRendererToIndices protected function):

if (!item || !(item.name in rowMap))

When that line runs, the invalidateSizeFlag on item (my renderer) 
suddenly goes to false.

Any idea what's happening? What is the recommended way to remeasure an 
itemRenderer?

Thanks;

Amy

 

Reply via email to