Bug Tracker

Opened 16 years ago

Closed 16 years ago

#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:
Blocked by: Blocking:

Description (last modified by joern)

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 (2)

comment:1 Changed 16 years ago by oliverlangan

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.

comment:2 Changed 16 years ago by joern

Description: modified (diff)
Resolution: wontfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.