(function(){zul.tab.Tabpanels=zk.$extends(zul.Widget,{getTabbox:function(){return this.parent},setVflex:function(a){"min"!=a&&(a=!1);this.$supers("setVflex",arguments)},setHflex:function(a){"min"!=a&&(a=!1);this.$supers("setHflex",arguments)},bind_:function(){this.$supers(zul.tab.Tabpanels,"bind_",arguments);zWatch.listen({onResponse:this})},unbind_:function(){zWatch.unlisten({onResponse:this});this.$supers(zul.tab.Tabpanels,"unbind_",arguments)},onChildRemoved_:function(a){this.$supers("onChildRemoved_",
arguments);this._shallSync=!0},onChildAdded_:function(a){this.$supers("onChildAdded_",arguments);var b=this.getTabbox(),c;b&&(!b.inAccordionMold()||(c=a.$n("cave"))&&"none"!=c.style.display)&&(this._shallSync=!0)},onResponse:function(){if(this._shallSync){var a;if(this.desktop&&(a=this.getTabbox())){var b=this._selPnl;a=a._selTab;b!=(a&&(a=a.getLinkedPanel()))&&(b&&b.desktop&&b._sel(!1,!0),a&&a._sel(!0,!0),this._selPnl=a)}this._shallSync=!1}}})})();
