The text field can only expand to div#container
As long as you set the max-height: 250px
, it will not expand to that size unless something pushes it. Since your text box is 100%, it just uses whatever is available.
To understand what I mean, just set the container height: 250px
instead of max-height
.
source share