# Dynamic textfield with fixed height but variable width?

**URL:** <https://forum.kirupa.com/t/dynamic-textfield-with-fixed-height-but-variable-width/261125>\
**Category:** Uncategorized\
**Created:** [May 23, 2008, 11:52am UTC](https://forum.kirupa.com/t/dynamic-textfield-with-fixed-height-but-variable-width/261125 "2008-05-23T11:52:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [May 23, 2008, 11:52am UTC](https://forum.kirupa.com/t/dynamic-textfield-with-fixed-height-but-variable-width/261125/1 "2008-05-23T11:52:40Z")

</div>

How can i make a dyn textfield with fixed height but variable with width?

ps what is the difference between

```auto

var pageContent:TextField;

vs 

var pageContent:TextArea;

```

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [May 23, 2008, 12:05pm UTC](https://forum.kirupa.com/t/dynamic-textfield-with-fixed-height-but-variable-width/261125/2 "2008-05-23T12:05:37Z")

</div>

this might help…

> toolTip.dynt.autoSize = true;  
> toolTip.dynt.wordWrap = true;

---

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [May 23, 2008, 2:47pm UTC](https://forum.kirupa.com/t/dynamic-textfield-with-fixed-height-but-variable-width/261125/3 "2008-05-23T14:47:18Z")

</div>

TextArea is a component I do believe

---

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [May 23, 2008, 2:53pm UTC](https://forum.kirupa.com/t/dynamic-textfield-with-fixed-height-but-variable-width/261125/4 "2008-05-23T14:53:07Z")

</div>

you want

```auto
toolTip.dynt.autoSize = true;

```

btw

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [May 23, 2008, 7:34pm UTC](https://forum.kirupa.com/t/dynamic-textfield-with-fixed-height-but-variable-width/261125/5 "2008-05-23T19:34:41Z")

</div>

He might also want:

```auto
toolTip.dynt._height = enter height in pixels;

```

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [May 23, 2008, 7:39pm UTC](https://forum.kirupa.com/t/dynamic-textfield-with-fixed-height-but-variable-width/261125/6 "2008-05-23T19:39:20Z")

</div>

> [@nathan99;2330128](#):
>
> TextArea is a component I do believe

It sure is. The main difference is that it’s identical to a dynamic textfield except that it has scroll-bars built in.
