Skip to main content

Search and Top Navigation

#4696 closed bug (wontfix)

Opened July 18, 2009 06:12PM UTC

Closed October 20, 2010 03:24AM UTC

Last modified December 10, 2013 03:15PM UTC

Bug with revert and grid : the element goes back to a bad position

Reported by: yotsumi Owned by:
Priority: major Milestone: 1.9.0
Component: ui.draggable Version: 1.7.2
Keywords: grid, revert Cc:
Blocked by: Blocking:
Description

I have find a bug on the ui.draggable component which appears when i use the options grid and revert.

When you move the draggable element, the first time

it goes back to its initial position, but after, he goes back to a bad position ( a little gap ).

I see it on Firefox 3.5, Firefox 3.1, IE8, IE7 ...

See the example below

Attachments (2)
  • bug jquery ui.rar (26.5 KB) - added by yotsumi July 18, 2009 06:12PM UTC.
  • bug.html (1.0 KB) - added by yotsumi July 18, 2009 06:19PM UTC.

    Bug html file

Change History (5)

Changed July 18, 2009 06:19PM UTC by yotsumi comment:1

I think that this error can be resolved by making the following modification, but don't ask me how's that work!

In ui.draggable

_mouseStart: function(event) {

Before : this.originalPosition = this._generatePosition(event); ''[line 99]''

Add :

this.originalPageX = event.pageX;

this.originalPageY = event.pageY;

Changed November 17, 2009 09:35AM UTC by jzaefferer comment:2

milestone: TBD1.8

Changed June 06, 2010 10:28AM UTC by wojtek.szkutnik comment:3

I confirm:

adding

this.originalPageX=a.pageX;this.originalPageY=a.pageY;

before or after

this.originalPosition=this.position=this._generatePosition(a);

in JQuery UI Draggable fixes the problem. This exact code is present in JQuery UI Sortable but seems to be missing in Draggable.

Changed October 20, 2010 03:24AM UTC by scottgonzalez comment:4

resolution: → wontfix
status: newclosed

These options won't exist in the rewrite.

Changed December 10, 2013 03:15PM UTC by scottgonzalez comment:5

#9702 is a duplicate of this ticket.