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\'
After dialog .open(), and filling with .html():
.open()
.html()
$("#div").css('max-height','500px');