Search and Top Navigation
#5132 closed bug (worksforme)
Opened February 04, 2010 11:27PM UTC
Closed February 06, 2010 04:02AM UTC
Last modified February 06, 2010 04:06AM UTC
Slider: Incorrect values returned
Reported by: | jerep6 | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.8 |
Component: | ui.slider | Version: | 1.7.2 |
Keywords: | boundaries values | Cc: | |
Blocked by: | Blocking: |
Description
Hello,
With Jquery 1.8rc1 the slider don't behave well.
The boundaries values aren't at the edge of the slider.
The minimal value locate one step over and the minimal value is one step before.
For example :
Step 0 = val1; Step 1 = val0
See an example of the bug : http://jerep6.free.fr/bugJquery/bug.html
Attachments (2)
Change History (6)
Changed February 04, 2010 11:28PM UTC by comment:1
component: | ui.slider → [meta] ui.demos |
---|
Changed February 04, 2010 11:31PM UTC by comment:2
component: | [meta] ui.demos → ui.core |
---|
Changed February 05, 2010 02:27AM UTC by comment:3
priority: | critical → blocker |
---|---|
summary: | Boundaries values aren't locate at the edge of the slider → Slider: Incorrect values returned |
Changed February 05, 2010 02:27AM UTC by comment:4
component: | ui.core → ui.slider |
---|
Changed February 06, 2010 04:02AM UTC by comment:5
resolution: | → worksforme |
---|---|
status: | new → closed |
This is working as intended. Replying on forum.
Changed February 06, 2010 04:06AM UTC by comment:6
Okay, replying here since this apparently didn't start on the forums...
During a slide the values haven't been updated yet, because the slide event can be cancelled preventing the values from actually changing. If you want to know the values that will occur if the slide event is successful, you have to check the data that is passed to the event:
$( "#slider" ).slider({ max: 10, values: [ 0, 10 ], range: true, slide: function( event, ui ) { console.log( ui.values ); } });