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\"
This all I have done for the dialog box to grow automatically
$("#edit_dependent").dialog({ autoOpen:false, modal:true, width:800, position:["center",20], minHeight:"auto" });