Ticket #1110 (closed bug: wontfix)
Bug in SliderSetValues
| Reported by: | adityamooley | Owned by: | stefan |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.3 |
| Component: | interface | Version: | 1.1.2 |
| Keywords: | islider | Cc: | |
| Blocking: | Blocked by: |
Description (last modified by joern) (diff)
While trying to set the slider indicator position with SliderSetValues, it sets wrong values. For e.g. if I set slider 1 to [15, 0] it changes its X by 17 and not 15.
After a lot of debugging in islider.js file we noticed that it's the indicator GIF image which is creating this problem. I had to add the width of indicator image in the width of slider image to make it work correctly.
So, if I need the slider of length 100 and the indicator image has width 16 then the slider length has to be 100 + 16 = 116.
The example of this can be seen here -> http://sanisoft-demo.com/jquery/slider.html
Thanks,
Aditya Mooley
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

I am seeing a similar but slightly different problem in the SliderSetValues().
I would expect, when trying to 'reset' a slider with one indicator to 0,0, to use:
but this does not work! The slider does not move in any way.
Rather I need to get the values from SliderGetValues(), and reverse them (make them negative) to move the slider. What is worse, of the four values returned by SliderGetValues(), it is not the first and second that I need, but rather the third and forth, e.g.:
That really doesn't make sense to me.