1 Reply Latest reply on May 7, 2008 2:20 AM by Mitek17

    textArea height width autosize

    joshua_shizny Level 1
      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