关于TextArea中textHeight和textWidth计算值不正确的解决办法

参考这里面,具体什么原因导致的还不清楚
http://idletogether.com/automatically-resize-texttextarea-based-on-content-autosize-in-flex/

txtLabel.validateNow();
txtLabel.mx_internal::getTextField().autoSize = TextFieldAutoSize.LEFT;
txtLabel.height = txtLabel.mx_internal::getTextField().height;

你可能感兴趣的:(textarea)