Web/Scripts/skins/extjs/lhg_dlg_ie6.js
(完整代码) 1KB/*!
* lhgcore Dialog Plugin Copyright (c) 2009 By Li Hui Gang
*/
// 此文件用于修正IE6下窗口尺寸
(function()
{
var fixsize = window.doretsize = function()
{
var lhgdlg = window.document.body;
for( var i = 0, l = lhgdlg.childNodes.length; i < l; i++ )
{
var child = lhgdlg.childNodes[i];
switch( child.className )
{
case 'contain':
child.style.width = Math.max( 0, lhgdlg.offsetWidth - 7 - 7 );
child.style.height = Math.max( 0, lhgdlg.clientHeight - 7 - 25 );
break;
case 'tr':
child.style.left = Math.max( 0, lhgdlg.clientWidth - 7 );
break;
case 'tc':
child.style.width = Math.max( 0, lhgdlg.clientWidth - 7 - 7 );
break;
case 'ml':
child.style.height = Math.max( 0, lhgdlg.clientHeight - 25 - 7 );
break;
case 'mr':
child.style.left = Math.max( 0, lhgdlg.clientWidth - 7 );
child.style.height = Math.max( 0, lhgdlg.clientHeight - 25 - 7 );
break;
case 'bl':
child.style.top = Math.max( 0, lhgdlg.clientHeight - 7 );
break;
case 'br':
child.style.left = Math.max( 0, lhgdlg.clientWidth - 7 );
child.style.top = Math.max( 0, lhgdlg.clientHeight - 7 );
break;
case 'bc':
child.style.width = Math.max( 0, lhgdlg.clientWidth - 7 - 7 );
child.style.top = Math.max( 0, lhgdlg.clientHeight - 7 );
break;
}
}
};
var load = function()
{
window.attachEvent( 'onresize', fixsize );
fixsize(); window.detachEvent( 'onload', load );
};
window.attachEvent( 'onload', load );
})();
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
