Search and Top Navigation
#3605 closed bug (fixed)
Opened November 19, 2008 10:22AM UTC
Closed May 15, 2009 01:08AM UTC
actualSize in ui.slider not calculated correctly if element is hidden
Reported by: | FreakCERS | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.8 |
Component: | ui.slider | Version: | 1.6rc2 |
Keywords: | actualSize | Cc: | |
Blocked by: | Blocking: |
Description
If the slider element (or it's parents) are hidden via display: none; its actualSize is calculated to be 0x0 instead of the dimensions set in css.
This has the effect that the slider does not honor its startValue, and you cannot use moveTo before it's displayed again.
I suggest you add an optional option "css", "size" or similar, that allows you to pass as argument the actual size of the slider element, and having this used instead of outerWidth() and outerHeight() (if present, obviously)
Attachments (0)
Change History (3)
Changed February 17, 2009 12:39PM UTC by comment:1
milestone: | TBD → 1.6 |
---|---|
owner: | paul |
priority: | minor → major |
status: | new → assigned |
type: | enhancement → bug |
Changed March 08, 2009 02:31PM UTC by comment:2
milestone: | 1.7 → 1.8 |
---|
Changed May 15, 2009 01:08AM UTC by comment:3
resolution: | → fixed |
---|---|
status: | assigned → closed |
This was fixed when the slider plugin was completely refactored after 1.6rc2. Slider size is now totally fluid, and handle positions are set with a percentage of that container width.
Slider shouldn't break just by hiding it.