Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    16
    Vote Rating
    0
    gwallace is on a distinguished road

      0  

    Default Multi sliders always rounding

    Multi sliders always rounding


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.1 rev RC3 and final
    Browser versions tested against:
    • Chrome
    • FF (firebug installed)
    Description:
    • Slider thumbs always snap to integers.
    Steps to reproduce the problem:
    • Change multi slider in example to below code
    • Drag the end sliders to the edges
    The result that was expected:
    • .9 50 100.1
    The result that occurs instead:
    • foo
    • bar
    Test Case:
    Code:
        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);
    HELPFUL INFORMATION

    Screenshot or Video:
    • attached
    Debugging already done:
    • Setting increment to .1 or .001 etc. doesn't seem to work
    Possible fix:
    • not provided
    Operating System:
    • Win7
    Attached Images

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,154
    Vote Rating
    475
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Have a look at decimalPrecision

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    16
    Vote Rating
    0
    gwallace is on a distinguished road

      0  

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

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,154
    Vote Rating
    475
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    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.

Thread Participants: 1

Tags for this Thread