Ticket #3546 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

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:
Blocking: Blocked by:

Description

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:

Windows

  • 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)

Mac

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

Here's the demo:

 http://74.205.126.197/dragtest/

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:

 http://74.205.126.197/dragtest/index2.php

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)

JR

Change History

comment:1 Changed 6 years ago by scott.gonzalez

  • Milestone changed from TBD to 1.6

comment:2 Changed 6 years ago by paul

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

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.