Search and Top Navigation
#9325 closed bug (duplicate)
Opened May 23, 2013 07:54PM UTC
Closed August 18, 2014 01:44AM UTC
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 ;)
Attachments (0)
Change History (3)
Changed May 24, 2013 01:27PM UTC by comment:1
status: | new → open |
---|---|
summary: | Wrong draggable start position when using auto margin. → Draggable: helpers do not account for margin on draggable element |
Changed August 14, 2014 12:17PM UTC by comment:2
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
, any placed on the will not be accounted for: http://jsfiddle.net/tj_vantoll/zB2w9/. You can work around this by using the cursorAt option.