Having looked into Make JQuery UI Dialog automatically grow or shrink to fit its contents, I am using the height: \"auto\" option when building a jQuery modal dialo
height: \"auto\"
Here is the sample demo
$( "#dialog-message" ).dialog({ modal: true, height: "auto", buttons: { Ok: function() { $( this ).dialog( "close" ); } } }); setTimeout(function() { $('#inside').append("Hello!"); setTimeout(arguments.callee, 1000); },1000);