aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.slider.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-02-18 03:00:03 +0000
committerScott González <scott.gonzalez@gmail.com>2009-02-18 03:00:03 +0000
commitf39561cc7f7f951261c2842c579a8168b5b54b6c (patch)
treefa4aae7f3a7ddcf5baf0a94d4ce8fbbc17259eb0 /ui/ui.slider.js
parentf0b9f16d084047e143816f987e87ed6f415a6cba (diff)
downloadjquery-ui-f39561cc7f7f951261c2842c579a8168b5b54b6c.tar.gz
jquery-ui-f39561cc7f7f951261c2842c579a8168b5b54b6c.zip
Slider: Removed support for auto orientation, set default to horizontal. Fixed #4174.
Diffstat (limited to 'ui/ui.slider.js')
-rw-r--r--ui/ui.slider.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js
index 2b388c6d5..b304843bf 100644
--- a/ui/ui.slider.js
+++ b/ui/ui.slider.js
@@ -259,7 +259,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
},
_detectOrientation: function() {
- this.orientation = this.options.orientation == 'auto' ? (this.element[0].offsetWidth/this.element[0].offsetHeight > 1 ? 'horizontal' : 'vertical') : this.options.orientation;
+ this.orientation = this.options.orientation == 'vertical' ? 'vertical' : 'horizontal';
},
_normValueFromMouse: function(position) {
@@ -495,7 +495,7 @@ $.extend($.ui.slider, {
distance: 0,
max: 100,
min: 0,
- orientation: 'auto',
+ orientation: 'horizontal',
range: false,
step: 1,
value: 0,