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\'
You can achieve this by doing the following:
HTML
Dialog content
JavaScript
$('#dialog').dialog({ resizable: false, minHeight: 0, create: function() { $(this).css("maxHeight", 400); } });
Check out test case on jsFiddle.