aboutsummaryrefslogtreecommitdiffstats
path: root/ui/slider.js
diff options
context:
space:
mode:
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;