title: Align window to center of the page after changing width and height in ExtJs 4
body: <p>I have a window and my requirement is that I have to change the window's height and width during the <code>onchange</code> event of a dropdown.</p>
  
  <p>That works fine but I'm not able to align the window to the center of the browser/page after resize. I had surfed through the net for a while but I'm not able to find a solution.</p>
  
  <p>Can this be done with the resize event of a window? If so, please let me know how to do it. I have not posted any code since I'm not sure where to start with.</p>