Opened 10 years ago
Closed 8 years ago
#9325 closed bug (duplicate)
Draggable: helpers do not account for margin on draggable element
Reported by: | ComFreek | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.draggable | Version: | 1.10.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Test case: http://jsfiddle.net/YtNCu/
jQuery version: 1.9.1 jQuery UI version: 1.10.3
Tested systems Windows 8 Pro 64-bit:
- Chrome 27.0.1453.94 m
- IE 10
- [Works as expected!] Safari 5.1.7
- [Works as expected!] Opera 12.15
Unfortunately, I could not test Firefox/Aurora because a) they don't load jsFiddle (loading image forever), b) they aren't able to load local files using jQuery CDNs and c) I do not have time for further researchs ;)
Change History (3)
comment:1 Changed 10 years ago by
Status: | new → open |
---|---|
Summary: | Wrong draggable start position when using auto margin. → Draggable: helpers do not account for margin on draggable element |
comment:2 Changed 8 years ago by
Margin: auto has issues in specific browsers in that some will return an actual pixel value, while others still will return "auto". There's unfortunately nothing we can do about that.
However, in the case of specific margin values, I suppose we can adjust by the offset of the helper relative to the original? Not sure how this specifically this would work, but worth eploring further.
It doesn't have to be
margin: auto
, anymargin
placed on thehelper
will not be accounted for: http://jsfiddle.net/tj_vantoll/zB2w9/. You can work around this by using the cursorAt option.