You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using non-integer numeric inputs with style="slider" or style="scroll bar", the UI widgets only support integer steps (because the underlying JSlider and JScrollbar objects only support int values).
This can be improved by scaling the slider range to the [min; max] range as follows:
slider.setMinimum(0)
slider.setMaximum( (max-min) / stepSize )
slider.setValue( (value-min) / stepSize )
value = slider.getValue() * stepSize + min
and setting the slider/scrollbar labels to string representations of the scaled values.