Search and Top Navigation
#15117 new bug ()
Opened December 17, 2016 05:39PM UTC
Last modified December 17, 2016 05:39PM UTC
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.