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 comment:1
status: | new → accepted |
---|
Changed June 08, 2008 07:10AM UTC by comment:2
owner: | paul → rdworth |
---|---|
priority: | major → minor |
status: | accepted → assigned |
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 comment:3
milestone: | 1.5 → 1.5.2 |
---|---|
version: | 1.5rc1 → 1.5 |
Changed July 10, 2008 08:54PM UTC by comment:4
milestone: | 1.5.2 → 1.6b |
---|
Changed August 16, 2008 02:50PM UTC by comment:5
milestone: | 1.6b → 1.6 |
---|
Changed December 17, 2008 03:24PM UTC by comment:6
resolution: | → invalid |
---|---|
status: | assigned → closed |
Closed as invalid, since it's a issue related to jQuery's css() function.