jQRangeSlider icon indicating copy to clipboard operation
jQRangeSlider copied to clipboard

Feature request: Handle labels to not cross slider borders

Open Kamilius opened this issue 10 years ago • 3 comments

Hi. So the thing is to implement something like "bounds" property for labels, which will regulate either handle labels positioned above or under handle in min or max position, will go outside this slider left and right border.

For ex, I have a slider with 200px width, and padding of container - 10px each side. If labels will be long, they'll go outside of screen, when max/min value selected. Also if min/max label selected and labels are pushing each other - one of labels(partially) will be also pushed outside of the parent container.

Kamilius avatar May 12 '14 05:05 Kamilius

Also, is there a possibility to "refresh" chart? So it would refresh all elements position(labels or handles for ex.)?

Kamilius avatar May 12 '14 09:05 Kamilius

For your second question, take a look at this method: https://ghusse.github.io/jQRangeSlider/methods.html#resizeMethod

ghusse avatar May 12 '14 10:05 ghusse

Thanks, it's really acting as refresh.

As for first one - currently i'm using this, as a short-term solution for this "feature" http://jsfiddle.net/vM844/1230/ But in my case i'm not styling ui-rangeSlider-label, but only it's ui-rangeSlider-label-value

Kamilius avatar May 12 '14 10:05 Kamilius