Bug Tracker

Modify

Ticket #2348 (closed bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

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

ui.slider.html Download (2.6 KB) - added by chmac 5 years ago.
Modified ui.slider.html demo to show bug

Change History

Changed 5 years ago by chmac

Modified ui.slider.html demo to show bug

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

comment:2 Changed 5 years ago by paul

  • Owner changed from paul to braeker

comment:3 Changed 5 years ago by joern

  • Status changed from new to closed
  • Resolution set to worksforme

I assume this has been fixed in the meantime, I can't replicate it at all. Please reopen if the issue persists in the latest revision.

comment:4 Changed 5 years ago by chmac

Confirmed, the bug has been resolved in trunk. :)

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.