3、paras.north);varo2=this.paras.south?yhm.getObject(this.paras.south):null;varo=yhm.g(n+"_split")varme=this;yhm.attachEvent(o,"mousedown",(function(obj){returnfunction(e){emis_layout_down(obj,e);}})(me));yhm.attachEvent(document,"mousemove",(function(obj){returnfunction(e){emis_layout_move(obj,
4、e);}})(me));yhm.attachEvent(document,"mouseup",(function(obj){returnfunction(e){emis_layout_up(obj,e);}})(me));o=null;o1.paras.renderTo=n+"_n";o1.render();if(o2!=null){o2.paras.renderTo=n+"_s";o2.render();}o1=null;o2=null;};yhm.NsLayout.prototype.resize=function(){vars=yhm.getSize(this.paras)
5、;varw=s.width;varh=s.height;varn=this.paras.name;if(!this.paras.northHeight){this.paras.northHeight=h-12-this.paras.southHeight;}e(n+"_n").setHeight(this.paras.northHeight)yhm.e.setWidth(w-10);h=h-14-this.paras.northHeight;e(n+"_s").setHeight(h<0?0:h);yhm.e.setWidth(w-10);e.ele=null;yhm.getOb
6、ject(this.paras.north).resize();if(this.paras.south)yhm.getObject(this.paras.south).resize();if(this.paras.children){varc=this.paras.children;vari=c.length;while(i--){yhm.getObject(c[i]).resize();}c=null;}};yhm.NsLayout.prototype.addChild=function(n){if(!this.paras.children)this.paras.childre
7、n=[];this.paras.children[this.paras.children.length]=n;};functionemis_layout_down(obj,e){varn=obj.paras.name;varo=yhm.g("emis_line")if(o==null){o=document.createElement("SPAN");o.id="emis_line";o.className="emis_grid_line";document.body.appen
此文档下载收益归作者所有