[flexcoders] Re: resizing a textArea to fit Text of the container.

2008-05-01 Thread Dmitri Girski
TextField has a problem calculating numLines if text contains CR/LF symbols. Dmitri. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: At measure time, it's width may not have been passed to the internal textfield. From:

[flexcoders] Re: resizing a textArea to fit Text of the container.

2008-05-01 Thread Dmitri Girski
--- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote: TextField has a problem calculating numLines if text contains CR/LF symbols. Still, I don't know why you've got such a difference in your case. I am using the following thing: override public function set

[flexcoders] Re: resizing a textArea to fit Text of the container.

2008-03-05 Thread targetplanet
--- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 2/28/08, targetplanet [EMAIL PROTECTED] wrote: but it seems the textHeight can't be relied on, because it gives me crazy numbers that can't be right, like for 3 lines of text it says its 250. I am using

RE: [flexcoders] Re: resizing a textArea to fit Text of the container.

2008-03-05 Thread Alex Harui
What is the width (not textWidth) of the TextArea? If it is narrow, it will affect textHeight. If you look at measurement code in Text.as or in ListItemRenderer.as, you'll see that we fix the width before getting textHeight. From: flexcoders@yahoogroups.com