fix text field component preferred size computation