Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#12205 closed bug (fixed)

Slider: Changing orientation breaks range

Reported by: atomiomi Owned by:
Priority: minor Milestone: 1.12.0
Component: ui.slider Version: 1.11.3
Keywords: Cc:
Blocked by: Blocking:

Description

For example let's take max range slider. If orientation is changed from horizontal to vertical then the range will fill horizontal space proportionally to value of handle before changing. I reproduced this bug with 1.10 and 1.11 version of jQuery UI in Chrome and Firefox.

Test link: http://jsfiddle.net/f52g9u47/4/. To reproduce this bug follow this steps:

  1. Change orientation to vertical. Everything is ok. Change it back to horizontal.
  2. Drag the handle to the middle of the track.
  3. Set orientation to vertical
  4. Now range doesn't fill all space. If you change orientation back to horizontal, range will also fill only half vertical space.

It works in min and simple range too.

PR: https://github.com/jquery/jquery-ui/pull/1533

Change History (3)

comment:1 Changed 3 years ago by Scott González

Status: newopen
Summary: Changing orientation breaks rangeSlider: Changing orientation breaks range

comment:2 Changed 3 years ago by Ablay Keldibek

Resolution: fixed
Status: openclosed

Slider: Range fills all space after changing orientation

Resets width/height of range

Fixes #12205 Closes gh-1533

Changeset: 897a238332110c5c1a58ee9a0db5bf4e54fc3059

comment:3 Changed 3 years ago by Scott González

Milestone: none1.12.0
Note: See TracTickets for help on using tickets.