-
-
Notifications
You must be signed in to change notification settings - Fork 496
Ticks on slider are not stretch properly #414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Unfortunately, this is not possible with the current version. This limitation is due to the way the ticks are rendered: flexbox is used and so the ticks are automatically spread on the slider. At the moment, I don't have any solution to provide... |
Is there any possibility that it will be fixed in next versions? |
I can't take any engagement on it. If somebody provide a pull request that provide a good solution, I would be happy to accept it. At the moment, I am less active on this repository support so I would probably not do it myself. |
Ok, thank you for your response |
@girniakolenka I have work on a ticks refactoring that enables to position ticks at specific position: #426. Do you think it would match your needs? |
#426 has been merged so |
If you only want these values: [10, 17, 71, 86, 100] and if they need to be positioned like in the example you gave, you can implement your own custom scale by using the |
Thank you very much! |
Steps to reproduce
stepsArray
property$scope.minRangeSlider = { minValue: 10, maxValue: 100, options: { floor: 0, ceil: 100, showTicksValues: true, stepsArray: [10, 17, 71, 86, 100] } };
Demo: https://jsfiddle.net/8yt262cg/ (fork this example and update the link)
I have edited your examples (example with "Range slider")
Expected behaviour
Ticks on slider should stretch depends on values which they have

Actual behaviour
Ticks on slider are not stretch properly

The text was updated successfully, but these errors were encountered: