Vru,

The actual code would depend on exactly what you are trying to do, but
taking the "onShow callback function" test[1], I modified the code to
resize and reposition the container:

function modalShow (dialog) {
        var self = this;
        dialog.data.find('input.animate').one('click', function () {
                dialog.container.animate({height:"+=50", width:"+=50"}, 1000,
function () {
                        self.setPosition();
                });
        });
}

[1]: http://www.ericmmartin.com/simplemodal-test/

Hope that helps.

-Eric

On Aug 26, 7:52 pm, Veeru <swamyve...@gmail.com> wrote:
> Hi there,
> I have been using simpleModal
> Was wondering if there is a way to resize simplemodal on demand; in
> other words; i would like to change the height/width of simple modal
> when the content has changed. As of now, if the content has changed
> and grown, it overflows the simplemodal dialog.
>
> Any suggestions?
>
> Thanks
> Vru

Reply via email to