4

I have a window and my requirement is that I have to change the window's height and width during the onchange event of a dropdown.

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.

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.

vard
  • 4,057
  • 2
  • 26
  • 46
CARTIC
  • 573
  • 3
  • 14
  • 26

1 Answers1

11

The best place to start is always the docs :)

Have you tried the center() method of Ext.window.Window?

existdissolve
  • 3,104
  • 1
  • 16
  • 12