Well I will use mx:UITextField if faster... but I have to use custom itemrenderer because of complex data to display. The scrolling I described occurs only on mousewheel, and there's no scrollbar. The measures are not wrong and the area for the text can expand, so the problem is not measurement : the text scrolls though there is no more text to see, thus only one line of text is visible out of the two when scrolling down.
thomas --- http://www.web-attitude.fr/ msn : [email protected] softphone : sip:[email protected] <sip%[email protected]> téléphone portable : +33601 822 056 2009/6/22 Alex Harui <[email protected]> > > > 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:* [email protected] [mailto:[email protected]] *On > Behalf Of *thomas parquier > *Sent:* Monday, June 22, 2009 6:28 AM > *To:* [email protected] > *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 : [email protected] > softphone : sip:[email protected] <sip%[email protected]> > téléphone portable : +33601 822 056 > > >

