Skip to content

Instantly share code, notes, and snippets.

@lsmith
Created March 13, 2009 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsmith/78428 to your computer and use it in GitHub Desktop.
Save lsmith/78428 to your computer and use it in GitHub Desktop.
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