Thank you for your answers, Andriy, I've overriden the Text component to use the workarounds you mentionned on textField property, but they didnt work.
Alex, a style padding doesnt work, but the following code in "commitProperties()" did the trick : > uiDescription.validateNow(); > uiDescription.height = uiDescription.measuredHeight+3; > 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/23 Alex Harui <[email protected]> > > > That problem occurs when the TextWidget is a few pixels too short. Pad > the height by a few pixels and your problem should go away. > > > > 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 11:43 AM > *To:* [email protected] > *Subject:* Re: [flexcoders] prevent text from scrolling > > > > > > > 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 > > > > >

