aboutsummaryrefslogtreecommitdiffstats
path: root/ui/slider.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2014-06-11 09:28:39 -0400
committerScott González <scott.gonzalez@gmail.com>2014-07-02 17:17:05 -0400
commit15baf024c3352f0c593a49d70a3a87e4bc13c36b (patch)
treea07b7b0c185af407dabd69fe6b004aba545d1ec4 /ui/slider.js
parent7c4c86a000d1daf8181583a9902fed7008a4190e (diff)
downloadjquery-ui-15baf024c3352f0c593a49d70a3a87e4bc13c36b.tar.gz
jquery-ui-15baf024c3352f0c593a49d70a3a87e4bc13c36b.zip
Slider: Reset positioning when orientation changes
Fixes #10105 Closes gh-1268
Diffstat (limited to 'ui/slider.js')
-rw-r--r--ui/slider.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/slider.js b/ui/slider.js
index 73bfb0273..58b5c0759 100644
--- a/ui/slider.js
+++ b/ui/slider.js
@@ -454,6 +454,9 @@ return $.widget( "ui.slider", $.ui.mouse, {
.removeClass( "ui-slider-horizontal ui-slider-vertical" )
.addClass( "ui-slider-" + this.orientation );
this._refreshValue();
+
+ // Reset positioning from previous orientation
+ this.handles.css( value === "horizontal" ? "bottom" : "left", "" );
break;
case "value":
this._animateOff = true;