NightCatSama/vue-slider-component

Tooltip stays in slider area not being cut

p1pchenk0 opened this issue · 2 comments

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

Done by calculating difference between slider rail left offset and tooltip bubble offset