Set max number of lines of the input text field so that the buttons are still visible when the input text is long.