Bug Tracker

Modify

Ticket #1110 (closed bug: wontfix)

Opened 6 years ago

Last modified 5 years ago

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

comment:1 Changed 6 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 5 years ago by joern

  • Status changed from new to closed
  • Resolution set to wontfix
  • Description modified (diff)

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.