Skip to main content

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 jzaefferer comment:1

milestone: TBD1.6
owner: paul
priority: minormajor
status: newassigned
type: enhancementbug

Slider shouldn't break just by hiding it.

Changed March 08, 2009 02:31PM UTC by rdworth comment:2

milestone: 1.71.8

Changed May 15, 2009 01:08AM UTC by rdworth comment:3

resolution: → fixed
status: assignedclosed

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.