Created
March 13, 2009 04:26
-
-
Save lsmith/78428 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YAHOO.widget.Slider.prototype.setStartSliderState = function() { | |
this.logger.log("Fixing state"); | |
this.setThumbCenterPoint(); | |
this.baselinePos = getXY(this.getEl()); | |
this.thumb.startOffset = this.thumb.getOffsetFromParent(this.baselinePos); | |
// This is the added line | |
this.resetThumbConstraints(); | |
if (this.thumb._isRegion) { | |
if (this.deferredSetRegionValue) { | |
this._setRegionValue.apply(this, this.deferredSetRegionValue); | |
this.deferredSetRegionValue = null; | |
} else { | |
this.setRegionValue(0, 0, true, true, true); | |
} | |
} else { | |
if (this.deferredSetValue) { | |
this._setValue.apply(this, this.deferredSetValue); | |
this.deferredSetValue = null; | |
} else { | |
this.setValue(0, true, true, true); | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment