title: jQuery - Dialog auto-resize on dynamic content and maintain center position
body: <p>I have a jQuery Dialog box and Am loading the content using Ajax. </p>
  
  <p>The Dialog is initially in the center of the page. The problem , here is , Since its a dynamic content, the size of the data is unknown. So, When I get large data, the dialog grows only in the bottom side i.e. The dialog expands in the bottom, and the top is still in the same position.</p>
  
  <p>What I want is</p>
  
  <p>When the data is loaded, the dialog should expand in both the direction (top and bottom ), so that the content is visible without scrolling.</p>