Slider: Removed support for auto orientation, set default to horizontal. Fixed #4174.

This commit is contained in:
Scott González 2009-02-18 03:00:03 +00:00
parent f0b9f16d08
commit f39561cc7f
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ var slider_defaults = {
distance: 0,
max: 100,
min: 0,
orientation: 'auto',
orientation: 'horizontal',
range: false,
step: 1,
value: 0,

View File

@ -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,