I want a dialog to have a max height setting but, if the content is smaller, then to shrink down to do what height = \'auto\' does. Is this possible in JQuery UI di
height = \'auto\'
I use this:
$('#dialog').dialog({ maxHeight: $(window).height(), open: function() { $(this).dialog('option', 'maxHeight', $(window).height()); } });
Resetting maxHeight in "open" is useful when window has changed size.