javascript - jQuery Mobile slider handle moves past track at one end -
Then the issue I am coming to is that my slider handle appears to run before the limit of the track when I call it Moves the minimum price (top left) you can see what I'm talking about below, as the handle of the first slider is still within the track, but the handles of the second slider eliminate it by a few pixels. looks like.
How do I offset the handset here? Or is there something that I can change with the track to fix this problem?
Thank you!
It looks like you've changed the size of the track and handle it via CSS when you change the handle size, then you have to change the negative left margin to half the width of the handle . In addition, reducing the radius of the track's range will help slightly in the sequences:
.ui-slider-track, .ui-slider-switch {height: 30px; Boundary-radius: 12px; } .ui-slider-track .ui-btn.ui-slider-handle {width: 16px; Height: 36px; Margin Top: -20px! Important; Margin-left: -8px! Important; }
Comments
Post a Comment