📄 raddockingzone.js
字号:
if ("undefin\x65\x64"==typeof(RadDockNamespace)){RadDockNamespace=new Object(); }var RadDockingZoneTypeFlags= {Vertical: 01,Horizontal: 02,Top: (16|02),Bottom: (32|02),Left: (48|01),Right: (64|01),All: (18|34|49|65),Custom: 255 } ; RadDockNamespace.I18= {None: 0,o19: 1,O19: 2,l19: (1|2)} ; RadDockNamespace.o18= function (L,I17){Object.k(L,RadDockNamespace.i19); var i=0; L.Type=I17[i++]; L.o12=I17[i++]; L.I19=I17[i++]; L.G=I17[i++]; var I0=I17[i++]; L.l12=I17[i++]; L.O1=document.getElementById(I0); if (L.tagName=="\x54ABL\x45" && L.rows.length && L.rows[0].cells.length){L.rows[0].cells[0].style.verticalAlign="top"; }RadDockNamespace.o3(window,"\x6coad",L.o1a.O1a(L)); } ; RadDockNamespace.i19= {IsDockingZone: true ,Type:null,o12:null,I19:null,G:null,l12:null,O1:null,l6:function (){ this.l1a=null; this.I6=null; this.O1=null; } ,i1a:function (){return ((this.tagName=="TABLE")?this.rows[0].cells[0]: this ); } ,GetDockedObjects:function (){var I1a=new Array(); var Oz; var container=this.i1a(); var childNodes=container.childNodes; for (var i=0; i<childNodes.length; i++){Oz=childNodes[i]; if (!Oz.IsDockableObject)continue; I1a[I1a.length]=Oz; }return I1a; } ,SetAtPosition:function (Ih,position){if (!Ih)return; if (Ih.ParentDockingZone!=this )return; var Oz; var container=this.i1a(); var childNodes=container.childNodes; var o1b=new Array(); var O1b=-1; for (var i=0; i<childNodes.length; i++){Oz=childNodes[i]; if (!Oz.IsDockableObject)continue; if (Oz==Ih){O1b=o1b.length; }o1b[o1b.length]=Oz; }var l1b=position-O1b; if (1==l1b){position+=1; }if (o1b.length==position){container.appendChild(Ih); }else {var insertBefore=o1b[position]; if (insertBefore){container.insertBefore(Ih,insertBefore); }} this.SaveState(); } ,GetPosition:function (Ih){if (!Ih)return -1; if (Ih.ParentDockingZone!=this )return -1; var Oz; var i1b=-1; var childNodes=this.i1a().childNodes; for (var i=0; i<childNodes.length; i++){Oz=childNodes[i]; if (!Oz.IsDockableObject){continue; }i1b++; if (Oz==Ih){break; }}return i1b; } ,l9:function (Ih,insertBefore){if (!Ih)return; this.I1b(Ih); Ih.ParentDockingZone=this ; Ih.parentNode.removeChild(Ih); var container=this.i1a(); if (this.l1a && this.l1a!=this ){if (!insertBefore){insertBefore=this.l1a; }container.insertBefore(Ih,insertBefore); }else {container.appendChild(Ih); } this.ox( false); container=null; this.SaveState(); } ,I1b:function (Ih){if (this.l12){var le=Ih.GetRect(); if (!Ih.Ia){Ih.Ia=le.width; }if (Ih.N){if (!Ih.ob){Ih.ob=le.height; }}if (!this.o1c || !this.O1c){var lz=this.GetRect(); this.o1c=lz.width; this.O1c=lz.height; }}else if (Ih.Ia || Ih.ob){Ih.SetSize(Ih.Ia,Ih.ob); Ih.Ia=null; Ih.ob=null; }var l1c= false; if ((this.l12&RadDockNamespace.I18.o19)>0){l1c= true; Ih.style.width=(this.o1c+"px"); }if ((this.l12&RadDockNamespace.I18.O19)>0){if (Ih.N){Ih.style.height=(this.O1c+"px"); }else {Ih.l0=(this.O1c+"\160\170"); }}} ,o1a:function (){var I1a=this.GetDockedObjects(); for (var i=0; i<I1a.length; i++){ this.I1b(I1a[i]); }} ,GetRect:function (L){return RadGetElementRect(L || this ); } ,HitTest:function (Ih,ok,l18){ this.l1a=null; if (!this.o12){return false; }var lz=this.GetRect(); if (!l18)l18=Ih.GetRect(); var x=RadDockNamespace.Of()+ok.clientX; var y=RadDockNamespace.If()+ok.clientY; var i1c=lz.I1c(x,y) && Ih.i8(this ); if (i1c){ this.l1a=this ; var container=(this.tagName=="TABLE")?this.rows[0].cells[0]: this ; var node,o1d; for (var i=0; i<container.childNodes.length; i++){node=container.childNodes[i]; if (node.IsDockableObject && node.h && Ih!=node){o1d=(node.GetRect().I1c(x,y)); if (o1d){ this.l1a=node; break; }}}container=null; }return i1c; } ,ox:function (O1d){var container=(this.tagName=="\x54A\x42\x4cE")?this.rows[0].cells[0]: this ; O1d=(O1d!= false); if (O1d){var l1d=this.l1a; this.i1d(this,this ==l1d); var node; for (var i=0; i<container.childNodes.length; i++){node=container.childNodes[i]; if (node.I9){ this.i1d(node,node==l1d); }}}else if (!O1d && this.I1d){ this.i1d(this, false); var node; for (var i=0; i<container.childNodes.length; i++){node=container.childNodes[i]; if (node.I9){ this.i1d(node, false); }}} this.I1d=O1d; container=null; } ,i1d:function (L,O1d){O1d=(O1d!= false); if (O1d && null==L.o1e){L.o1e=L.style.cssText; L.style.cssText+=("\x3b"+this.I19); }else if (!O1d && null!=L.o1e){L.style.cssText=L.o1e; L.o1e=null; }} ,SaveState:function (){var o7=new Array(); var childNodes=this.i1a().childNodes; var Oz; for (var i=0; i<childNodes.length; i++){Oz=childNodes[i]; if (!Oz.IsDockableObject)continue; o7[o7.length]=Oz.G; } this.O1.value=o7.join(","); } ,O1e:function (I4){var container=this.i1a(); var node; for (var i=0; i<container.childNodes.length; i++){node=container.childNodes[i]; if (node.IsDockableObject && node.lc()){node.Expand(I4); }}} ,CollapseAllObjects:function (){ this.O1e( false); } ,ExpandAllObjects:function (){ this.O1e( true); }} ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -