Normally you only need to implement measure if you didn't base the component on a container, but item renderers are a bit different. Their measure methods must take the explicitWIdth and calculate measuredHeight.
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Michael Prescott Sent: Thursday, December 11, 2008 2:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] MXML Components and measure() When is it that you have to implement measure()? If you're building components in MXML, purely out of other standard Flex components, do you ever need to bother with measure()? I'm making an MXML item renderer, and I'm running into some trouble with the DataGrid handling the variable row height - particularly once I put this into my renderer: <mx:Text htmlText="{some HTML from somewhere}"/> Coming at this rather naively, it seems that the VBox that the Text each ought to have appropriate measure() implementations already, but clearly something's gone wrong. Any tips would be helpful. Regards, Michael