Hi Satu,
Is the question I am asking 'Dynamically increasing size of container to
fit all characters' of interest?  I haven't got any solutions as yet,
but it may be useful...  
Leon


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of svktiilikainen
Sent: 10 January 2006 09:16
To: [email protected]
Subject: [flexcoders] Re: How to determine the content length in
mx:Text?

OK, probably managed to solve this. I can always compare 
preferredHeight with height and preferredWidth with width, and this 
seems to work for now.

Satu

--- In [email protected], "svktiilikainen" 
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> does anyone know how you can determine the length of text in mx:Text 
> component before the component is drawn?
> In other words, is it possible to find out that the to-be contents 
of 
> a Text component are too big to fit into the component without 
> clipping? The Text component here is of fixed width & height, 
> multiline, and can contain basically any number of characters, line 
> breaks etc.
> 
> Satu
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to