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!
This will help:
$.modal(data,
{
minWidth: 400,
onShow: function(dialog){
//изменение размеров контейнера по размеру контена
dialog.container.css({"height":"auto","width":"auto"});
}
});
精彩评论