zul.layout.Anchorchildren=zk.$extends(zul.Widget,{_anchor:null,$define:{anchor:function(){if(this.desktop)this.onSize()}},bind_:function(){this.$supers(zul.layout.Anchorchildren,"bind_",arguments);zWatch.listen({onSize:this})},unbind_:function(){zWatch.unlisten({onSize:this});this.$supers(zul.layout.Anchorchildren,"unbind_",arguments)},onSize:function(){var b=this.$n(),c=this.parent.$n(),e=jq(c).width();c=jq(c).height();var a=this._anchor?this._anchor.split(" ",2):[],d=a[0];a=a[1];d&&(0<d.indexOf("%")?
b.style.width=d:b.style.width=jq.px0(e+zk.parseInt(d)));a&&(0<a.indexOf("%")?b.style.height=a:b.style.height=jq.px0(c+zk.parseInt(a)))}});
