I'm using the Slider of the jQuery UI , and I'm wanting the handle responsible for moving the slider, stay within the limits of the slider. Currently it looks like this:
Limit 0%:
100%limit:
Iwantittostaywithinthelimitoftheslider,likethis:
Limit0%:
100%limit:
Howtosolvethisproblem?Hereisthecodeinjsfiddle:
link
Important notes:
- Moving the handle should be fluid as it normally does;
- The Slider used uses the
range
property as seen in jsfiddle - Solution can not display visual anomalies
- jsfiddle displays a sample where the handle exceeds the bounds of the Slider