Slider size method only returns the width of the slider
When checking for a sliders size, the size method only returns it's outerWidth, however, when using a vertical slider, you need the height of the slider, not its width.
The fix is to change this on line 192 in ui.slider.js:
return this.actualSize (this.actualSize = this.element.outerWidth());
|
to this:
return this.actualSize (this.actualSize = (this.options.axis == 'horizontal') ? this.element.outerWidth() : this.element.outerHeight());
|
Change History (5)
Owner: |
changed from paul to joern
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
Somehow the pipes are missing:
return this.actualSize | | (this.actualSize = (this.options.axis == 'horizontal') ? this.element.outerWidth() : this.element.outerHeight());