views:

84

answers:

1

I would like to adjust the height of the simple-container to match changing depth requirements passed on data returned from the server using $.ajax.

It seems that once the modal is fired, all CSS changes on the fly, e.g. $('#someid').css('height','500px')

Anyway to override the set CSS?

Thanks

+1  A: 

Sorry, this had been asked and answered in a different form. Here my code and now I have a dynamically resizing modal.

Added:

$('#simplemodal-container').css('height', 'auto');

as in:

$('#mycontainer').modal({onShow: function (dialog) {
             $('#simplemodal-container').css('height', 'auto');
        }});
breadwild
Welcome to SO :) Please accept the answer with the checkmark to the left...it'll help the next person who has the same problem and finds this on google :)
Nick Craver