Skip to content

Update sortable.js#1

Open
juongithub wants to merge 2 commits into
masterfrom
juongithub-patch-1
Open

Update sortable.js#1
juongithub wants to merge 2 commits into
masterfrom
juongithub-patch-1

Conversation

@juongithub

Copy link
Copy Markdown
Owner

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 this change, in some cases, the first sorting action could produce a bad positioning of the helper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant