Opened 2 years ago

#15117 new bug

Jquery Sortable Bug on first sorting action

Reported by: juongithub Owned by:
Priority: minor Milestone: none
Component: ui.sortable Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

Description

Lines:

this.helper.css("position", "absolute");
this.cssPosition = this.helper.css("position");

should be before:

$.extend(this.offset, {
 click: { ... },
 parent: this._getParentOffset(),
 relative: this._getRelativeOffset()
});

since functions _getParentOffset() and _getRelativeOffset() depend on the value of this.cssPosition.

In fact, without the correct ordering, in some cases, the first sorting action could produce a bad positioning of the helper.

Change History (0)

Note: See TracTickets for help on using tickets.