zul.inp.Bandpopup=zk.$extends(zul.Widget,{bind_:function(){this.$supers(zul.inp.Bandpopup,"bind_",arguments);jq(this.$n()).on("focusin",this.proxy(this._focusin)).on("focusout",this.proxy(this._focusout))},unbind_:function(){jq(this.$n()).off("focusout",this.proxy(this._focusout)).off("focusin",this.proxy(this._focusin));this.$supers(zul.inp.Bandpopup,"unbind_",arguments)},_focusin:function(a){this._shallClosePopup=!1},_focusout:function(a){var b=this.parent,c=this,d=b&&b.$n("pp");c._shallClosePopup=
null!=d&&a.relatedTarget!=d;setTimeout(function(){b&&b.isOpen()&&c._shallClosePopup&&(b.close(),c._shallClosePopup=!1)})},afterChildrenMinFlex_:function(a){"w"==a&&(a=(a=this.parent)&&a.$n("pp"))&&(a.style.width=jq.px0(this._hflexsz+zk(a).padBorderWidth()),zk(a)._updateProp(["width"]))},doClick_:function(a){a.domTarget==this.$n()&&this.parent.focus();this.$supers("doClick_",arguments)}});
