We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#567 introduced a fix for the revert position. However, the way my table is set up, it produces a major error which seems easy to fix.
The added code of #567 reads:
if( dnd.smartRevert ) { // #567: fix revert position rect = node.li.getBoundingClientRect(); parentRect = $(draggable.options.appendTo)[0].getBoundingClientRect(); draggable.originalPosition.left = Math.max(0, rect.left - parentRect.left); draggable.originalPosition.top = Math.max(0, rect.top - parentRect.top); }
however, I'm running the DND extension with tables. Therefore,
node.li -> null node.tr -> I'm here
changing
node.li
to
node.tr
fixes the problem for me. So I guess we need a check if node.li is null, that we use node.tr.
The text was updated successfully, but these errors were encountered:
Found the same issue with the OP, and I posted the detail in #114
Sorry, something went wrong.
Thanks for reporting!
e216764
👍
Thanks for the quick fix!
No branches or pull requests
#567 introduced a fix for the revert position. However, the way my table is set up, it produces a major error which seems easy to fix.
The added code of #567 reads:
however, I'm running the DND extension with tables. Therefore,
changing
to
fixes the problem for me.
So I guess we need a check if node.li is null, that we use node.tr.
The text was updated successfully, but these errors were encountered: