The default renderer can have multiple lines of text and is smaller and faster than one that uses mx:Text. If you look at the code (mx.controls.listClasses.ListItemRenderer) you’ll see that it uses the explicitWIdth to set the width of the text widget before measuring. That is required since the text height generally depends on how wide it is.
Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Monday, June 22, 2009 6:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] prevent text from scrolling Hello, I've developped a list item renderer which embeds a mx:Text component, some text have two lines. How to prevent texts with two lines from being scrolled when list is scrolled whit mouse wheel ? thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr<mailto:thomas.parqu...@web-attitude.fr> softphone : sip:webattit...@ekiga.net<mailto:sip%3awebattit...@ekiga.net> téléphone portable : +33601 822 056