RE: [flexcoders] Determining text control's height in a ListItemRenderer.

2008-04-07 Thread Tracy Spratt
When I did this, I did not extend ListItemRenderer, but rather copied it an modfied the code. ListItemRenderer does properly handle height and width measurement. You could look at the code, specifically in the measure() method, to see what you need to do to duplicate the functionality. Tracy

RE: [flexcoders] Determining text control's height in a ListItemRenderer.

2008-04-07 Thread Alex Harui
You should set the Text's width to some portion of the item renderer's explicitWidth before measuring the Text. Note that ListItemRenderer already does wordwrapping and uses TextField instead of the heavier Text component. From: flexcoders@yahoogroups.com