Fix TextField autosize issue.