/**
* @class WindowResize
* 调用后能使系统各个模块自适应窗体大小的公用函数
*/
var WindowResize = function(){
var self = this;
self.con=".ui-out";
self.head=".ui-head";
self.body=".ui-body";
self.foot=".ui-foot";
self.left=".ui-left";
self.center=".ui-center";
self.right=".ui-right";
self.tag = ".ui-tag";
self.quick = ".ui-quick";
self.frame = ".ui-frame";
var w=document.documentElement.clientWidth;
var h=document.documentElement.clientHeight;
var height = h - $(self.head).height() - $(self.foot).height();
$(self.body).height(height);
/*为ie6定高*/
$(self.left).height(height);
$(self.center).height(height);
$(self.right).height(height);
var width = w - $(self.left).width() - $(self.center).width();
$(self.right).width(width);
var fh = $(self.right).height() - $(self.tag).get(0).offsetHeight - $(self.quick).get(0).offsetHeight;
//if($.browser.msie){
// fh-=2;
//}
$(self.frame).height(fh);
$(self.frame).width(width-1);
};
$(window).resize(function(){
maxwiXXX.resize();
});
* @class WindowResize
* 调用后能使系统各个模块自适应窗体大小的公用函数
*/
var WindowResize = function(){
var self = this;
self.con=".ui-out";
self.head=".ui-head";
self.body=".ui-body";
self.foot=".ui-foot";
self.left=".ui-left";
self.center=".ui-center";
self.right=".ui-right";
self.tag = ".ui-tag";
self.quick = ".ui-quick";
self.frame = ".ui-frame";
var w=document.documentElement.clientWidth;
var h=document.documentElement.clientHeight;
var height = h - $(self.head).height() - $(self.foot).height();
$(self.body).height(height);
/*为ie6定高*/
$(self.left).height(height);
$(self.center).height(height);
$(self.right).height(height);
var width = w - $(self.left).width() - $(self.center).width();
$(self.right).width(width);
var fh = $(self.right).height() - $(self.tag).get(0).offsetHeight - $(self.quick).get(0).offsetHeight;
//if($.browser.msie){
// fh-=2;
//}
$(self.frame).height(fh);
$(self.frame).width(width-1);
};
$(window).resize(function(){
maxwiXXX.resize();
});