3 Attachment(s)
set input field to automatically take up full height of container
Hello,
I've got an input field inside a div like this:
Attachment 6220
The user is permitted to add search tags to the input field like this:
Attachment 6221
The search tags aren't REALLY added to the input field. They are added to an overlay div that's positioned exactly overtop the div containing the input field. When the user adds enough search tags to warrant wrapping them to a new line, the height of the input field increases like this:
Attachment 6222
Currently, we are doing this manually (i.e. through Javascript). When a new tag is added and needs to wrap to the next line, we increase the height of the two divs (the overlay and the one containing the input field) and also the input field itself.
It would be much more convenient if I could program the input field or the div containing the input field to automatically increase the height of the input field to take up the full height of its div. In other words, set the input field to ALWAYS take up the full height of its div.
How can I do this?