public/javascripts/yui/progressbar/progressbar.js
function() {
			var barEl = this.get(BAR_EL);

			switch (this.get(DIRECTION)) {
				case DIRECTION_LTR:
				case DIRECTION_RTL:
					this._barSpace = parseInt(this.get(WIDTH),10) - 
						(parseInt(Dom.getStyle(barEl,'marginLeft'),10) || 0) -
						(parseInt(Dom.getStyle(barEl,'marginRight'),10) || 0);
					break;
				case DIRECTION_TTB:
				case DIRECTION_BTT:
					this._barSpace = parseInt(this.get(HEIGHT),10) -
						(parseInt(Dom.getStyle(barEl,'marginTop'),10) || 0)-
						(parseInt(Dom.getStyle(barEl,'marginBottom'),10) || 0); 
					break;
			}
			this._barFactor = this._barSpace / (this.get(MAX_VALUE) - (this.get(MIN_VALUE) || 0))  || 1;
		}
function() {
			var barEl = this.get(BAR_EL);

			switch (this.get(DIRECTION)) {
				case DIRECTION_LTR:
				case DIRECTION_RTL:
					this._barSpace = parseInt(this.get(WIDTH),10) - 
						(parseInt(Dom.getStyle(barEl,'marginLeft'),10) || 0) -
						(parseInt(Dom.getStyle(barEl,'marginRight'),10) || 0);
					break;
				case DIRECTION_TTB:
				case DIRECTION_BTT:
					this._barSpace = parseInt(this.get(HEIGHT),10) -
						(parseInt(Dom.getStyle(barEl,'marginTop'),10) || 0)-
						(parseInt(Dom.getStyle(barEl,'marginBottom'),10) || 0); 
					break;
			}
			this._barFactor = this._barSpace / (this.get(MAX_VALUE) - (this.get(MIN_VALUE) || 0))  || 1;
		}
function ( ) { var barEl = this . get ( BAR_EL ) ; switch ( this . get ( DIRECTION ) ) { case DIRECTION_LTR : case DIRECTION_RTL : this . _barSpace = parseInt ( this . get ( WIDTH ) , 10 ) - ( parseInt ( Dom . getStyle ( barEl , 'marginLeft' ) , 10 ) || 0 ) - ( parseInt ( Dom . getStyle ( barEl , 'marginRight' ) , 10 ) || 0 ) ; break ; case DIRECTION_TTB : case DIRECTION_BTT : this . _barSpace = parseInt ( this . get ( HEIGHT ) , 10 ) - ( parseInt ( Dom . getStyle ( barEl , 'marginTop' ) , 10 ) || 0 ) - ( parseInt ( Dom . getStyle ( barEl , 'marginBottom' ) , 10 ) || 0 ) ; break ; } this . _barFactor = this . _barSpace / ( this . get ( MAX_VALUE ) - ( this . get ( MIN_VALUE ) || 0 ) ) || 1 ; }
Calculates some auxiliary values to make the rendering faster
@method _recalculateConstants
@return  void
@private
Calculates some auxiliary values to make the rendering faster