Ext.EventManager.onWindowResize(function(){ if(currentWindow){ currentWindow.center(); } }); //currentWindow表示窗体的对象