Skip to main content

Bug Tracker

Side navigation

#1110 closed bug (wontfix)

Opened April 07, 2007 05:14AM UTC

Closed March 17, 2008 05:29PM UTC

Bug in SliderSetValues

Reported by: adityamooley Owned by: stefan
Priority: major Milestone: 1.1.3
Component: interface Version: 1.1.2
Keywords: islider Cc:
Blocked by: Blocking:
Description

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

Attachments (0)
Change History (2)

Changed May 24, 2007 10:47PM UTC by oliverlangan comment:1

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:

$("#slider").SliderSetValues([[0,0]]);

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.:

$("#slider").SliderSetValues([[$("#slider").SliderGetValues()[0][0][2],$("#slider").SliderGetValues()[0][0][3]]]);

That really doesn't make sense to me.

Changed March 17, 2008 05:29PM UTC by joern comment:2

description: 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\ \ 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 \ \
resolution: → wontfix
status: newclosed

Interface is deprecated, please give the latest UI slider a try.