//>>built
define("dojox/mobile/_ScrollableMixin","dojo/_base/kernel,dojo/_base/config,dojo/_base/declare,dojo/_base/lang,dojo/_base/window,dojo/dom,dojo/dom-class,dijit/registry,./scrollable".split(","),function(k,h,i,l,d,e,f,g,j){return i("dojox.mobile._ScrollableMixin",j,{fixedHeader:"",fixedFooter:"",scrollableParams:null,allowNestedScrolls:!0,appBars:!0,constructor:function(){this.scrollableParams={}},destroy:function(){this.cleanup();this.inherited(arguments)},startup:function(){if(!this._started){this.findAppBars();
var a,b=this.scrollableParams;if(this.fixedHeader){a=e.byId(this.fixedHeader);if(a.parentNode==this.domNode)this.isLocalHeader=!0;b.fixedHeaderHeight=a.offsetHeight}if(this.fixedFooter){a=e.byId(this.fixedFooter);if(a.parentNode==this.domNode)this.isLocalFooter=!0,a.style.bottom="0px";b.fixedFooterHeight=a.offsetHeight}this.scrollType=this.scrollType||h.mblScrollableScrollType||0;this.init(b);if(this.allowNestedScrolls)for(a=this.getParent();a;a=a.getParent())if(a&&a.scrollableParams){this.dirLock=
!0;a.dirLock=!0;break}this._resizeHandle=this.subscribe("/dojox/mobile/afterResizeAll",function(){if("none"!==this.domNode.style.display){var a=d.doc.activeElement;this.isFormElement(a)&&e.isDescendant(a,this.containerNode)&&this.scrollIntoView(a)}});this.inherited(arguments)}},findAppBars:function(){if(this.appBars){var a,b,c;for(a=0,b=d.body().childNodes.length;a<b;a++)c=d.body().childNodes[a],this.checkFixedBar(c,!1);if(this.domNode.parentNode)for(a=0,b=this.domNode.parentNode.childNodes.length;a<
b;a++)c=this.domNode.parentNode.childNodes[a],this.checkFixedBar(c,!1);this.fixedFooterHeight=this.fixedFooter?this.fixedFooter.offsetHeight:0}},checkFixedBar:function(a,b){if(1===a.nodeType){var c=a.getAttribute("fixed")||g.byNode(a)&&g.byNode(a).fixed;if("top"===c){f.add(a,"mblFixedHeaderBar");if(b)a.style.top="0px",this.fixedHeader=a;return c}if("bottom"===c)return f.add(a,"mblFixedBottomBar"),this.fixedFooter=a,c}return null}})});