# Scaling textArea component

**URL:** https://forum.kirupa.com/t/scaling-textarea-component/64809
**Category:** Uncategorized
**Created:** [September 20, 2004, 10:04am UTC](https://forum.kirupa.com/t/scaling-textarea-component/64809 "2004-09-20T10:04:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pietertje](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pietertje](https://forum.kirupa.com/u/pietertje)
#### Post date: [September 20, 2004, 10:04am UTC](https://forum.kirupa.com/t/scaling-textarea-component/64809/1 "2004-09-20T10:04:59Z")

</div>

I’m using the textArea component, but i want to scale it to the size of the browser window. The problem is it scale the content(xml+css) and the scrollbar, and i want to just change the size.  
I’ve also tried to attach the Component and then setting the size, but that give the same problem.  
good:  
 ![](http://www.pietertje.nl/dropbox/goed.jpg)  
wrong:  
 ![](http://www.pietertje.nl/dropbox/fout.jpg)

i hope someone can help…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 20, 2004, 9:49pm UTC](https://forum.kirupa.com/t/scaling-textarea-component/64809/2 "2004-09-20T21:49:14Z")

</div>

You can change the size of the textArea with .setSize. For example;

nameOfTextArea.setSize (500,500);

That will change the textArea with the instance name ‘nameOfTextArea’ to a width of 500 and a height of 500.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 21, 2004, 8:50am UTC](https://forum.kirupa.com/t/scaling-textarea-component/64809/3 "2004-09-21T08:50:17Z")

</div>

get the movie’s height & width with Stage.height & Stage.width

defaultStageHeight/defaultStageWidth = defaultTextBox’sHeght/defaultTextBox’sWidth

now you can rescale…atleast I hope

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 21, 2004, 10:50am UTC](https://forum.kirupa.com/t/scaling-textarea-component/64809/4 "2004-09-21T10:50:10Z")

</div>

> [@ShawnJC](#):
>
> You can change the size of the textArea with .setSize. For example;
> 
> nameOfTextArea.setSize (500,500);
> 
> That will change the textArea with the instance name ‘nameOfTextArea’ to a width of 500 and a height of 500.

that works perfect! thanx!
