Tooltip stays in slider area not being cut
p1pchenk0 opened this issue · 2 comments
p1pchenk0 commented
Describe the feature
Currently if we have some label in tooltip, and this label has big width, then when slider is at 0, part of tooltip is being cut.
Same may be true if slider is near right side and max value is selected.
Describe the solution you'd like
On slider move calculate position of tooltip based on free space left from left/right side of tooltip
NightCatSama commented
You can use slot
to customize the label style.
https://nightcatsama.github.io/vue-slider-component/#/api/slots?hash=label
p1pchenk0 commented
Done by calculating difference between slider rail left offset and tooltip bubble offset