Its adding extra whitespace (padding) at the bottom, there are no extra
white space characters in the htmlText which I can verify by setting
condenseWhite to true, which does get rid of all of the whitespace except
the extraneous bottom bit. And we're not talking a small amount either, its
about 40 - 50 pixels... textHeight seems to just be returning an inaccurate
amount unless it takes into consideration something that I'm not thinking
of.

--
Mark Walters

On 5/1/07, Daniel Freiman <[EMAIL PROTECTED]> wrote:

  I'm a little confused.  Is the TextArea adding extra space for an
unknown reason or are there actually extra white space characters at the end
of the text of the TextArea that you need to get rid of?

- Dan Freiman
nondocs <http://nondocs.blogspot.com>

On 5/1/07, Mark Walters <[EMAIL PROTECTED]> wrote:
>
>   Has anyone else run into the issue of TextArea components adding extra
> whitespace or padding at the bottom when setting height to textHeight?
> What's the recommended way of setting "autosize" on Flex TextArea
> components? I'm using the creationComplete event and then setting
> textArea.height = textArea.textHeight. When I do this though it doesn't
> just open up the TextArea to the size of the text, but also adds a lot of
> white space at the bottom.
> I did try setting condenseWhite to true, but that is not the issue, it
> still adds a large amount of whitespace to the bottom.
>
> Thanks,
>
> --
> Mark Walters
>

Reply via email to