Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Rangeslider layout breaks upon form reset #5773

Closed
gabrielschulhof opened this issue Mar 15, 2013 · 1 comment
Closed

Rangeslider layout breaks upon form reset #5773

gabrielschulhof opened this issue Mar 15, 2013 · 1 comment
Assignees
Milestone

Comments

@gabrielschulhof
Copy link

Steps to reproduce:

  1. Visit http://jsbin.com/onibuc/350/
  2. Type 50 into the lower end.
  3. Click the "Reset" button

At this point the range slider layout breaks.

@agcolom
Copy link
Contributor

agcolom commented Mar 19, 2013

ok, it seems that when the reset occurs, the css for "ui-slider-bg" is wrong. it gets a width of the start of the slider to the second handle, drawn from the first handle, instead of getting the width from the first handle to the second handle, drawn from the first handle. (so on reset, we need to get the value of the width by doing value2 - value1 instead of just value2)

Is it that _updateHighlight(); is not called upon reset?

@ghost ghost assigned arschmitz Mar 21, 2013
arschmitz added a commit that referenced this issue Apr 1, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants