I am using simplemodal to bring up a modal with some content in it.
Inside that content i am making a ajax call to some other content which is a different size from the original content (quite a bit smaller)
what i'm doing that is kind of working is using jQuery to change the size of the modal container.
in the oncomplete section of my ajax call i use the following jquery
jQuery("#simplemodal-container").animate({ height: 550 }, 500);
jQuery("#simplemodal-container").animate({ width: 493}, 500);'
there is two problems with this.
in different browsers the width is slightly different so the modal content doesn't look quite right
and the modal maintains it's original position. it doesn't recenter itself in the browser window.
does anyone know how to resize simplemodal based on new content inside of a open modal?
thanks very much.