# Autosize TextArea after text

**URL:** https://forum.kirupa.com/t/autosize-textarea-after-text/45568
**Category:** flash
**Created:** [March 16, 2004, 12:26am UTC](https://forum.kirupa.com/t/autosize-textarea-after-text/45568 "2004-03-16T00:26:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Danneman](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Danneman](https://forum.kirupa.com/u/Danneman)
#### Post date: [March 16, 2004, 12:26am UTC](https://forum.kirupa.com/t/autosize-textarea-after-text/45568/1 "2004-03-16T00:26:19Z")

</div>

How do I set a TextArea component to autosize itself vertically depending on the size of the textfile it loads?

I was thinking that the following code would do, but nosirebob:

cmp\_TextArea.setSize(200, “auto”);
