开发者

Dynamic modal height with SimpleModal

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"});
      }
    });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜