--- In [email protected], "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 text(val:String)
{
super.text = val;
for (var i:uint = 0; i < super.text.length; i++)
{
if (super.text.charAt(i) == '\r' || super.text.charAt(i) == '\n')
{
m_iParagraphNo++;
}
}
}
and then use iParagraphNo in set height() - adding the corresponding
number of extra lines.
Cheers,
Dmitri.