Thanks for that, I eventually found what I needed: http://flexnaut.blogspot.com/2007/11/adding-mxcontrolstext-component-to.html
-J On Fri, May 2, 2008 at 10:18 AM, Alex Harui <[EMAIL PROTECTED]> wrote: > Scour the archives. Folks ask about using Text in a renderer often. > You always have to supply a custom measure() method that uses the > explicitWidth of the renderer to measure the Text properly. > > > ------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Josh McDonald > *Sent:* Thursday, May 01, 2008 4:45 PM > *To:* [email protected] > *Subject:* [flexcoders] Weird list item height problem. > > > > Hey guys, > > I googled this and can't seem to find where I'm going wrong. I've got a > list with an inline itemRenderer, with variableHeight turned on, but all > non-visible items are losing their height. What I mean is that when you > scroll down, all revealed items having standard list-item height, and when > you scroll back up, the ones that used to be alright are now also too short. > Any ideas where I'm going wrong? > > Code below: > > <mx:List dataProvider="{ tempNotes }" id="existingNotes" width="100%" > maxHeight="400" variableRowHeight="true"> > <mx:itemRenderer> > <mx:Component> > <mx:VBox horizontalAlign="left" > horizontalScrollPolicy="off" width="100%" verticalScrollPolicy="off" > backgroundColor="#eeeeee" verticalGap="2"> > <mx:Text width="100%" text="{data.text}" > fontSize="9" fontStyle="italic"/> > <mx:HBox horizontalGap="10"> > <mx:Text text="From " fontSize="9"/> > <mx:Text fontWeight="bold" > text="{data.userId}" fontSize="9"/> > <mx:Text text="11-11-08" fontSize="9" > width="60"/> > </mx:HBox> > </mx:VBox> > </mx:Component> > </mx:itemRenderer> > </mx:List> > > Cheers, > -J > > -- > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

