//>>built
define("dojox/calendar/_ScrollBarBase","dojo/_base/declare dojo/_base/event dojo/_base/lang dojo/on dojo/dom-style dojo/sniff dijit/_WidgetBase dojox/html/metrics".split(" "),function(c,k,d,e,f,b,g,h){return c("dojox.calendar._ScrollBarBase",g,{value:0,minimum:0,maximum:100,direction:"vertical",_vertical:!0,_scrollHandle:null,containerSize:0,buildRendering:function(){this.inherited(arguments);this.own(e(this.domNode,"scroll",d.hitch(this,function(a){this.value=this._getDomScrollerValue();this.onChange(this.value);
this.onScroll(this.value)})))},_getDomScrollerValue:function(){if(this._vertical)return this.domNode.scrollTop;if(!this.isLeftToRight()){if(b("webkit")||7==b("ie"))return void 0==this._scW&&(this._scW=h.getScrollbar().w),this.maximum-this.domNode.scrollLeft-this.containerSize+this._scW;if(b("mozilla"))return-this.domNode.scrollLeft}return this.domNode.scrollLeft},_setDomScrollerValue:function(a){this.domNode[this._vertical?"scrollTop":"scrollLeft"]=a},_setValueAttr:function(a){a=Math.min(this.maximum,
a);a=Math.max(this.minimum,a);this.value!=a&&(this.value=a,this.onChange(a),this._setDomScrollerValue(a))},onChange:function(a){},onScroll:function(a){},_setMinimumAttr:function(a){this.minimum=a=Math.min(a,this.maximum)},_setMaximumAttr:function(a){this.maximum=a=Math.max(a,this.minimum);f.set(this.content,this._vertical?"height":"width",a+"px")},_setDirectionAttr:function(a){"vertical"==a?(a="vertical",this._vertical=!0):(a="horizontal",this._vertical=!1);this._set("direction",a)}})});