There are a few different ways you could handle this. I've provided a couple of ideas below"
1) after you get the ajax content, check it's height/width and adjust the container dimensions accordingly: $('#modal').modal({ onShow: function (d) { $('#modalclick', d.container[0]).click(function (e) { $.get('data.php', function (response) { d.data.empty().append(response); d.container.css({height:d.data.outerHeight(true), width:d.data.outerWidth(true)}); // you could also animate this }); }); } }); or 2) after you get the ajax content, reset the container dimensions and then call setContainerDimensions() Example: $('#modal').modal({ onShow: function (d) { var sm = this; $('#modalclick', d.container[0]).click(function (e) { $.get('data.php', function (response) { d.data.empty().append(response); d.container.css({height:0, width:0}); // reset dimensions sm.setContainerDimensions(); }); }); } }); HTH -Eric On Nov 9, 7:53 am, Milos Negovanovic <milos.negovano...@googlemail.com> wrote: > Hi, > > I have been searching for a way to resizesimplemodaldialog after > showing it. In plugin source i can see that a function > 'resize.simplemodal' is bound to window on initialization. Ive tried > to call this function directly with no luck. Is there a way to > havesimplemodalrecalculate its size after loading/showing? (I need this > since extra content is beeing loaded via AJAX after showing the dialog > initialy) > > Regards > Milos