-
1 May 2012 11:54 AM #1
Multi sliders always rounding
Multi sliders always rounding
REQUIRED INFORMATION
Ext version tested:- Ext 4.1 rev RC3 and final
- Chrome
- FF (firebug installed)
- Slider thumbs always snap to integers.
- Change multi slider in example to below code
- Drag the end sliders to the edges
- .9 50 100.1
- foo
- bar
HELPFUL INFORMATIONCode:var mul = Ext.create('Ext.slider.Multi', { renderTo: 'multi-slider-horizontal', hideLabel: true, width: 214, minValue: 0.9, maxValue: 100.1, increment: 0.1, values: [10.9, 50, 90.1] }); mul.on('changecomplete', function () { alert(mul.getValues()) }, this);
Screenshot or Video:- attached
- Setting increment to .1 or .001 etc. doesn't seem to work
- not provided
- Win7
-
1 May 2012 1:26 PM #2
Have a look at decimalPrecision
Regards,
Scott.
-
1 May 2012 11:16 PM #3
Follow up
Follow up
You have me there, sir, and I'm mad at myself because I had code for that in place, then removed it.
But humor me this - should a multi-slider "round" differently for a multi-slider? That is, flooring (then perhaps correcting up) for the bottom thumb at some precision and ceiling-ing (and correcting down) for the Nth thumb at the precision? I believe that is where I'm really seeing the problems I will have to work around.
I should be able to work around it, but I'm wondering if slider rounding errors is so common a problem that it merits further discussion (I can move this off the bug forums if you want, Scott).
-
2 May 2012 4:37 AM #4
If you can work up a small test case where you think it is not working as you expect, then perhaps we can re-issue as a bug

Regards,
Scott.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote