title: jQuery dialog shrinks when i open second time
body: <p>I have div (say div1) which contains two dropdown box and a form which has one another div (say div2). i have defined this div1 as jquery dialog. On change of 1st drop down another dropdown will be populated and on change of 2nd dropdown, div2 will be loaded with html result of an ajax call.</p>
  
  <p>Now i close the dialog using close button and then when i try to reopen the dialog (div1), the dialog height got shrinked below mentioned height. If i open dialog without changing 2nd dropdown, it is working fine.
   Only when <strong>onchange occurs in 2nd dropdown</strong>, the dialog box gets shrinked.</p>
  
  <p>jQuery Dialog Open div1: </p>
  
  <pre><code>    $("#fileDoc").dialog({
      bgiframe: true,     
          autoOpen: false,
          height: 680,
          width: 800,
          modal: true,
          resizable: false
  });
  </code></pre>
  
  <p>jQuery dialog close div1:</p>
  
  <pre><code>$('#fileDoc').dialog('close');
  </code></pre>
  
  <p>jQuery ajax call loads html in div2:</p>
  
  <pre><code>$("#doc").html(data);
  </code></pre>
  
  <p>i am using jQuery 1.4.4 and UI 1.8.2.</p>