mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Slider: Removed support for auto orientation, set default to horizontal. Fixed #4174.
This commit is contained in:
parent
f0b9f16d08
commit
f39561cc7f
@ -9,7 +9,7 @@ var slider_defaults = {
|
||||
distance: 0,
|
||||
max: 100,
|
||||
min: 0,
|
||||
orientation: 'auto',
|
||||
orientation: 'horizontal',
|
||||
range: false,
|
||||
step: 1,
|
||||
value: 0,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user