It seems that, unless the image it displays is already loaded, simplemodal won't resize to encompass the image. I've tried to preload the image, setContainerDimensions()
and update()
but I'm too inexperienced with jQuery to implement these possible fixes correctly. I know others have had similar issues but I'm sure it's nothing wrong with simlemodal, which is great.
jQuery(function ($) {
// Load dialog on click
$('#basic-modal .basic').click(function (e) {
$('#basic-modal-content').modal({
overlayClose:true,
autoResize:true,
minHeight:400,
minWidth: 600,
});// end of modal.
$.modal.setContainerDimensions();//seems to do nothing here :(
return false;
});// end of basic modal on click.
});// end of jQuery function.