Hey guys,
I am currently working on a client’s website. I need some help though.
Problem:
I have a textarea component. This textarea will have text loaded dynamically, so bascially I dont know what the maxVPosition is until runtime. I tried to resize the textarea so that the text doesn’t have to scroll, but this makes the font strech too… making it rather large. I have tried the following to counter this…
this._height += this.maxVPosition * (Number(font_size) + 10);
this.vScrollPolicy = "off";
font_size2 = font_size * (init_height/this._height);
this.setStyle("fontSize",Math.round(font_size2));
this however does not work as the font still stays huge.
Any ideas are appreciated.
Thanks
Aditya