/**
* 设置自动随屏幕大小自动调整大小
*/
Ext.EventManager.onWindowResize(function() {
if (viewport != null) {
viewport.setWidth(document.body.clientWidth);
viewport.setHeight(document.body.clientHeight);
}
});