Hello, thanks for your help. But I want the text to be truncated after then second line. That doesn't work that way.
Markus --- In [email protected], "Ramanujam, Pratap" <[EMAIL PROTECTED]> wrote: > > > <mx:TextArea editable="false" width="140" height="61" > text="This is the first Line. This is the second Line that should be > truncated."/> > > Can be used in your case. > > _____ > > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Ramanujam, Pratap > Sent: Wednesday, October 24, 2007 4:07 PM > To: [email protected] > Subject: RE: [flexcoders] Text truncateToFit > > > > > Hi, > > Use <mx:TextArea text="Hello kramus0" editable="false" > Width="" Height=""/> > > Set the Width and Height in the design mode appropriately to > specify 1 or 2 lines > as required. > > Thanks, > Pratap Ramanujam > > > > _____ > > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of kramus0 > Sent: Wednesday, October 24, 2007 2:31 PM > To: [email protected] > Subject: [flexcoders] Text truncateToFit > > > > I'm not sure whether this is a bug or not but > truncateToFit doesn't > seems to work for me. > > I have a text that has has a certain width and height so > that it can > show two lines. When I set truncateToFit to true and > assign a text > that is longer than to lines I would expect it is > truncated at the end > of the second line. > > <mx:Text truncateToFit="true" x="400" y="400" > width="140" height="30" > text="This is the first Line. This is the second Line > that should be > truncated."/> > > So what I would expect to see is something like this: > > This is the first Line. > This is the second L... > > But I get the following two lines (that scroll if I go > on the text): > > This is the first Line. > This is the second Line > > So, any suggestions? Thanks. > > Markus >

