From 15baf024c3352f0c593a49d70a3a87e4bc13c36b Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 11 Jun 2014 09:28:39 -0400 Subject: Slider: Reset positioning when orientation changes Fixes #10105 Closes gh-1268 --- ui/slider.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/slider.js') 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; -- cgit v1.2.3