Search and Top Navigation
#5583 closed bug (fixed)
Opened May 05, 2010 05:10AM UTC
Closed May 11, 2010 12:18PM UTC
Last modified May 20, 2010 11:16AM UTC
Slider displays negative fractional values incorrectly
Reported by: | evgeny | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 1.8.2 |
Component: | ui.slider | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Create a slider with the minimum and maximum values set to negative values less than 1, eg. -0.7 to -0.5 with a step of 0.1. The slider handle is displayed in the wrong position and can actually be outside of the slider div. Repro attached.
This works in 1.8rc3, but is broken in 1.8.1.
I think it's bug.
See:
jQuery UI 1.8.1
jquery.ui.slider.js
Problem:
line 598 (ui.slider _trimAlignValue)
"valModStep" may be negative value (when val is negative).
Test Code:
Workaround:
line 587 (ui.slider _trimAlignValue)
may work.
The "step-aligned" value should be between min and max.