if you use myField.autoSize = "center";
That would keep the text field's width fixed while the text flows lower to increase it's height right? On 12/20/05, Steven Sacks <[EMAIL PROTECTED]> wrote: > Actually, the person who told you to use just autosize has it wrong. If you > set a textfield to autosize, it will expand the right edge to fit the text, > so unless you're putting linebreaks in your text manually, it won't adjust > the height of the textfield. > > There's a kludge workaround for making textfields have width and height and > be autosized with wordwrap, and here it is: > > this.createTextField("label", 1, 0, 0, myWidth, lineHeight); > this.label.wordWrap = true; > this.label.multiline = true; > this.label.autoSize = true; > this.label.text = someText; > // KLUDGE > var textHgt = this.label.textHeight; > var tfHgt = this.label._height; > var diff = tfHgt - textHgt; > this.label.autoSize = false; > this.label._height = textHgt + diff; > // END KLUDGE > > HTH, > Steven > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders