/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojox.mobile.ScrollableView"],["require","dijit._WidgetBase"],["require","dojox.mobile"],["require","dojox.mobile._ScrollableMixin"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.mobile.ScrollableView"]){_4._hasResource["dojox.mobile.ScrollableView"]=true;_4.provide("dojox.mobile.ScrollableView");_4.require("dijit._WidgetBase");_4.require("dojox.mobile");_4.require("dojox.mobile._ScrollableMixin");_4.declare("dojox.mobile.ScrollableView",[_6.mobile.View,_6.mobile._ScrollableMixin],{flippable:false,buildRendering:function(){this.inherited(arguments);_4.addClass(this.domNode,"mblScrollableView");this.domNode.style.overflow="hidden";this.domNode.style.top="0px";this.domNode.style.height="100%";this.containerNode=_4.create("DIV",{className:"mblScrollableViewContainer"},this.domNode);this.containerNode.style.position="absolute";if(this.scrollDir==="v"||this.flippable){this.containerNode.style.width="100%";}this.reparent();this.findAppBars();},addChild:function(_7){var c=_7.domNode;var _8=this._checkFixedBar(c,true);if(_8){this.domNode.appendChild(c);if(_8==="top"){this.fixedHeaderHeight=c.offsetHeight;this.containerNode.style.paddingTop=this.fixedHeaderHeight+"px";}else{if(_8==="bottom"){this.fixedFooterHeight=c.offsetHeight;this.isLocalFooter=true;c.style.bottom="0px";}}this.resizeView();}else{this.containerNode.appendChild(c);}},reparent:function(){var i,_9,_a,c;for(i=0,_9=0,_a=this.domNode.childNodes.length;i<_a;i++){c=this.domNode.childNodes[_9];if(c===this.containerNode||this._checkFixedBar(c,true)){_9++;continue;}this.containerNode.appendChild(this.domNode.removeChild(c));}},findAppBars:function(){var i,_b,c;for(i=0,_b=_4.body().childNodes.length;i<_b;i++){c=_4.body().childNodes[i];this._checkFixedBar(c,false);}if(this.domNode.parentNode){for(i=0,_b=this.domNode.parentNode.childNodes.length;i<_b;i++){c=this.domNode.parentNode.childNodes[i];this._checkFixedBar(c,false);}}this.fixedHeaderHeight=this.fixedHeader?this.fixedHeader.offsetHeight:0;this.fixedFooterHeight=this.fixedFooter?this.fixedFooter.offsetHeight:0;},_checkFixedBar:function(_c){if(_c.nodeType===1){var _d=_c.getAttribute("fixed")||(_5.byNode(_c)&&_5.byNode(_c).fixed);if(_d){_4.style(_c,{position:"absolute",width:"100%",zIndex:1});}if(_d==="top"){_c.style.top="0px";this.fixedHeader=_c;return _d;}else{if(_d==="bottom"){this.fixedFooter=_c;return _d;}}}return null;},onAfterTransitionIn:function(_e,_f,_10,_11,_12){this.flashScrollBar();}});}}};});