Bug in sliders minimum value ?

Setting the minimum value for a DzIntSlider to a positive number is not working for me, the slider will have a min value of zero when i run the script. Setting to a negative value does work.
The DzFloatSlider will accept any minimum value lower than 1. Setting a minimum value of 1 or higher will also result in a min value of zero.

Is this a known bug, anyone else have this problem (or even better : a solution) ?

Comments

  • I have this problem too.

    The only solution I have found is to write a function that runs when 'editEnd()' is called:

    connect(wMyBuggySlider, "editEnd()", onMyBuggySliderChange);

    If the value is less than the desired minimum, the function changes it to the minimum:

    function onMyBuggySliderChange() {    if (wMyBuggySlider.value < desired_min) wMyBuggySlider.value = desired_min;};

    Visually, at the UI level, when you move the slider below the desired minimum and then release it, it jumps to the desired minimum.

Sign In or Register to comment.