No problem, Alex! I just found this thing while printing the contents of TextArea and I am not sure is this a bug or not.
Thanks! Dmitri. --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Sorry, haven't gotten around to it yet. > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Dmitri Girski > Sent: Tuesday, May 06, 2008 8:21 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: TextField - how does it calculate the number > of lines? > > > > Anyone? > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Dmitri Girski" <mitek17@> wrote: > > > > Question to Alex and the rest from Adobe gang: > > > > Why the TextField does not include in numLines the number of lines > > which ends up with CR or LF? > > > > I.e. if you have a text: > > > > Mary has a little lamb<CR> (1) > > Mary has a little lamb<CR> (2) > > > > And the width of TextField is big enough to accommodate the whole > > string (1) without breaking it. > > > > TextField thinks that it has 2 lines. But when it starts rendering > > text it places the <CR> symbol and we ending up with 4 lines of text. > > > > Is this a bug or feature? > > > > PS this is .text property, not the .htmlText (which has similar > > problem of missing the <br>s from the count) > > > > > > Thanks! > > >