Ticket #2348 (closed bug: worksforme)
Slider handles appear offset if minValue and stepping are used together
| Reported by: | chmac | Owned by: | braeker |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | ui | Version: | |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
See the attached modification to the slider demo.
If minValue and maxValue are specified and are not equal distances from 0 (as in, are not -100 and +100 or -x and +x) and a steps or stepping value is specified, the slider handles appear in the wrong position.
For example, if minValue = -100 and maxValue = 0, the slider will appear 100% of the width of the slider to the right (in the sample, 200px to the right).
If you move the handles with key presses, they work as expected. This behaviour is only apparent when using the mouse to move the handles.
Attachments
Change History
Changed 5 years ago by chmac
-
attachment
ui.slider.html
added
comment:1 Changed 5 years ago by chmac
Correction, this bug appears even if the minValue and maxValue are equal distances from 0 (-100 and +100).
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Modified ui.slider.html demo to show bug