Skip to main content

Search and Top Navigation

#3546 closed bug (fixed)

Opened November 07, 2008 01:02AM UTC

Closed January 09, 2009 02:55PM UTC

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)


Attachments (0)
Change History (2)

Changed January 02, 2009 02:17PM UTC by scottgonzalez comment:1

milestone: TBD1.6

Changed January 09, 2009 02:55PM UTC by paul comment:2

resolution: → fixed
status: newclosed

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