Is TextArea parented? It must be on the display list in order to calculate correctly. You should give it a width as well.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Josh Millstein Sent: Tuesday, May 06, 2008 8:50 PM To: [email protected] Subject: [flexcoders] TextArea height width autosize I'm trying to change the textArea's height I have instantiated in actionscript . I've tried two methods. 1. Assign text to textArea, validateNow() and then set textArea.height = textArea.textHeight Doesn't work. It makes the textArea height real small and textHeight at time of call is Nan 2. Assign an creationComplete event handler on textfield. Check height there, and assign It creates a textArea too tall. I can see it is calculating the value for height / not equal to Nan, but the reading is off. I have some \r 's in the text, could that be my problem? Any help would be great -- [EMAIL PROTECTED] <mailto:wolf%40wolffebrothers.com> 785-832-9154

