Fix layout and rendering of text input field.