Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap Modal Resize on Content Change

I have a bootstrap modal window which contains a form. If the user submits the form, it gets validated via Ajax. If there is any error it is shown above the form in the modal (without reloading the page).

Thus, i need a way to resize the modal when the content changes. Any ideas?

like image 563
Alp Avatar asked Jun 11 '12 09:06

Alp


1 Answers

have you tried not to set the height of the div?

like image 141
code-red Avatar answered Sep 22 '22 01:09

code-red