I can try to take a look over the weekend. I would break on makeRowsAndColumns in the DataGrid. If it gets hit, then recycling is underway.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Wednesday, June 04, 2008 9:36 AM To: [email protected] Subject: [flexcoders] Re: How to remeasure itemRenderer --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Is that verbatim from the renderer code or somewhere else? How does > handleLabelClick get called? That is from my renderer code. It's just a click handler on a canvas that contains a label. > I would check to see if the validation of the size causes renderers to > be recycled, defeating your addChild. Normally, you need to change a > property somewhere so that any renderer that is recycled in for that > data item will know to have that new child. > Would the recycling be happening in the itemRendererToIndices call? Before the item.invalidateSizeFlag switches to false in that call, the item variable is com.magnoliamultimedia.views.TestRenderer (@4873479). After the flag switches, it is still com.magnoliamultimedia.views.TestRenderer (@4873479). Wouldn't that mean that this is still the same renderer? If not, how would I detect that recycling is happening? The flag seems to be switching to false without going into any code that checks it. However, I don't wholly know what might be happening in some compiled code the debugger might not be showing me, which is part of why I asked the question. If I uploaded my code, would you have time/interest to look at it? Thanks; Amy

