使用SimpleModal的动态模态高度

goo*_*oon 2 jquery simplemodal jquery-ui

我正在使用SimpleModal来显示一个模态,其高度需要改变以响应重新填充对话框一部分的模态中的下拉列表更改.我遇到的问题是,当选择更改时,SimpleModal不会调整模式的高度.

我已经看到SO上的其他帖子与此相关,但它们似乎没有一个确定的答案或者与我的场景没有直接关系(我们支持IE 7和8).

任何关于此的指导都将非常感谢!

小智 5

这将有助于:

   $.modal(data,
    {
      minWidth: 400,
      onShow: function(dialog){
        //????????? ???????? ?????????? ?? ??????? ???????
        dialog.container.css({"height":"auto","width":"auto"});
      }
    });
Run Code Online (Sandbox Code Playgroud)