Hi,
I did a search and found few solutions to this problem however it is not working in my case.
I am facing problem related to TextArea auto wrap.
I used the following code I found on net to fix this however it is not working.
addEventListener(FlexEvent.CREATION_COMPLETE,onCreationComplete);
protected function onCreationComplete(event:FlexEvent):void
{
//textAreaControl is the id of the control you want to resize to contain it's text.
updateSize();
}
protected function updateSize():void
{
if(mx_internal::getTextField() != null)
{
validateNow();
mx_internal::getTextField().autoSize = TextFieldAutoSize.LEFT;
height = mx_internal::getTextField().height + 1;
}
}
see the attached screenshot. the border is drawn incorrectly around textarea
Any help is appreciated.