Reputation: 3099
I'm using SimpleModal to display a modal whose height needs to change in response to a dropdown list change in the modal that repopulates a portion of a dialog. The problem I'm running into is that SimpleModal doesn't resize the height of the modal when the selection changes.
I've seen other posts on SO related to this but none of them seem to have a conclusive answer or are not directly related to my scenario (we're supporting IE 7 and 8).
Any guidance on this would be most appreciated!
Upvotes: 2
Views: 1861
Reputation: 187
This will help:
$.modal(data,
{
minWidth: 400,
onShow: function(dialog){
//изменение размеров контейнера по размеру контена
dialog.container.css({"height":"auto","width":"auto"});
}
});
Upvotes: 5