Opened 7 years ago

Closed 7 years ago

#3546 closed bug (fixed)

SORTABLE: inconsistent drag behavior across browsers ( demo included )

Reported by: tallvanilla Owned by: paul
Priority: major Milestone: 1.7
Component: ui.sortable Version: 1.5.2
Keywords: body margin offset Cc:
Blocked by: Blocking:


I've set up a simple sortable demo to illustrate a bug. Sorting works fine, but as soon as you start dragging an element, the dragged element jumps to an offset position while dragging. The offset varies in size and direction from one browser to the next, and I was able to test it with the following:


  • IE 6 (offset about 3 pixels down, 3 pixels right)
  • Firefox 2 (GOOD! no offset)
  • Firefox 3 (offset about 10 pixels up, 10 pixels left)
  • Opera (offset about 10 pixels up, 10 pixels left)


  • Firefox 2 (GOOD! no offset)
  • Safari (GOOD! no offset)
  • Camino (GOOD! no offset)

Here's the demo:

When removing body margins from the document, the Firefox and Opera offsets go away, but the IE(6?) offset remains. Here's a demo without body margins to illustrate the difference:

Regardless, UI behavior shouldn't be dependent on body margins since body margins are often desirable and/or can't always be removed. (Also, why the different behavior between FF2 and FF3?)

Please see my demos to confirm my findings, and PLEASE fix. =o)


Change History (2)

comment:1 Changed 7 years ago by scott.gonzalez

  • Milestone changed from TBD to 1.6

comment:2 Changed 7 years ago by paul

  • Resolution set to fixed
  • Status changed from new to closed

All of these should be fixed with the lastest position fixes and the usage of jQuery 1.3pre.

Note: See TracTickets for help on using tickets.