seiyria / bootstrap-slider

A slider control for Bootstrap 3 & 4.
http://seiyria.github.io/bootstrap-slider/
Other
3k stars 1.14k forks source link

When I set minimum possible value, the slider tick position is wrong #914

Closed oo6 closed 5 years ago

oo6 commented 5 years ago

See https://jsfiddle.net/7robhqku/

image

jespirit commented 5 years ago

I'll look at this later today. Thanks for jsfiddle.

jespirit commented 5 years ago

It turns out that what I think you're trying to do is not supported.

You can read this issue on how to set limits https://github.com/seiyria/bootstrap-slider/issues/651 because you can't use the min option with a tick that is less than the minimum value. It adversely affects tick position and calculating the value of the slider.

Here's another JSFiddle I modified for your case: https://jsfiddle.net/jespiritu/nqzru0by/1/

seiyria commented 5 years ago

Looks right. Thanks for the research @jespirit!