Opened 15 years ago
Closed 14 years ago
#2964 closed bug (notabug)
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 (7)
Changed 15 years ago by
Attachment: | draggable.parentborder.html added |
---|
comment:1 Changed 15 years ago by
Status: | new → accepted |
---|
comment:2 Changed 15 years ago by
Owner: | changed from paul to rdworth |
---|---|
Priority: | major → minor |
Status: | accepted → assigned |
comment:3 Changed 15 years ago by
Milestone: | 1.5 → 1.5.2 |
---|---|
Version: | 1.5rc1 → 1.5 |
comment:4 Changed 15 years ago by
Milestone: | 1.5.2 → 1.6b |
---|
comment:5 Changed 14 years ago by
Milestone: | 1.6b → 1.6 |
---|
comment:6 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
Closed as invalid, since it's a issue related to jQuery's css() function.
Note: See
TracTickets for help on using
tickets.
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!