Scaling textArea component

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:

wrong:

i hope someone can help…

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.

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

defaultStageHeight/defaultStageWidth = defaultTextBox’sHeght/defaultTextBox’sWidth

now you can rescale…atleast I hope

that works perfect! thanx!