//浏览器窗口大小发生变化时,让弹出的窗体自动居中
Ext.EventManager.onWindowResize
(function(){
??? if(addServerInfoWindow){
??? ??? ?addServerInfoWindow.setHeight(document.body.clientHeight/1.5);
??? ??? addServerInfoWindow.setWidth(document.body.clientWidth/3);
??? ??? addServerInfoWindow.center();
??? }
???
??? if(updateServerInfoWindow){
??? ???? updateServerInfoWindow.setHeight(document.body.clientHeight/1.5);
??? ??? updateServerInfoWindow.setWidth(document.body.clientWidth/3);
??? ??? updateServerInfoWindow.center();
??? }
});
详细解决方案
浏览器窗口大小发生变化时,让弹出的窗体自动居间
热度:116 发布时间:2012-10-24 14:15:58.0
相关解决方案