Skip to main content

Search and Top Navigation

#2964 closed bug (notabug)

Opened June 06, 2008 01:42PM UTC

Closed December 17, 2008 03:24PM UTC

draggable jumps if position: absolute parent has border set with style and overriden in stylesheet

Reported by: rdworth Owned by: rdworth
Priority: minor Milestone: 1.7
Component: ui.draggable Version: 1.5
Keywords: draggable parent border jumps Cc:
Blocked by: Blocking:
Description

If a draggable element has a parent that is absolutely positioned, and has, for example, a small (1px) border set using inline style. If the same (parent) element also has the border modified via a stylesheet with !important and this border width is different, when the drag is first triggered, the draggable will jump by the delta of the two borders sizes. So if border is 1px inline and 30px in the stylesheet (!important), the draggable will jump by 29px. See attached for a minimal test case.

Attachments (1)
Change History (6)

Changed June 07, 2008 08:32PM UTC by paul comment:1

status: newaccepted

Changed June 08, 2008 07:10AM UTC by paul comment:2

owner: paulrdworth
priority: majorminor
status: acceptedassigned

Richard, that's actually a jQuery core issue - since $.css returns the set style instead of the !important rule, which is wrong. Could you submit it in the jquery trac? Thanks!

Changed June 26, 2008 07:55PM UTC by rdworth comment:3

milestone: 1.51.5.2
version: 1.5rc11.5

Changed July 10, 2008 08:54PM UTC by paul comment:4

milestone: 1.5.21.6b

Changed August 16, 2008 02:50PM UTC by Cloudream comment:5

milestone: 1.6b1.6

Changed December 17, 2008 03:24PM UTC by paul comment:6

resolution: → invalid
status: assignedclosed

Closed as invalid, since it's a issue related to jQuery's css() function.