Autohight inline input according to the number of lines