Merge pull request #6424 from philipstarkey/philipstarkey/fix-6014
fix DataTable: Allow drop below bottom rowpull/6471/head
commit
94a54fce68
|
@ -296,7 +296,6 @@ import {
|
||||||
getOffset,
|
getOffset,
|
||||||
getOuterHeight,
|
getOuterHeight,
|
||||||
getOuterWidth,
|
getOuterWidth,
|
||||||
getWindowScrollTop,
|
|
||||||
isClickable,
|
isClickable,
|
||||||
removeClass,
|
removeClass,
|
||||||
setAttribute
|
setAttribute
|
||||||
|
@ -1533,7 +1532,7 @@ export default {
|
||||||
|
|
||||||
if (this.rowDragging && this.draggedRowIndex !== index) {
|
if (this.rowDragging && this.draggedRowIndex !== index) {
|
||||||
let rowElement = event.currentTarget;
|
let rowElement = event.currentTarget;
|
||||||
let rowY = getOffset(rowElement).top + getWindowScrollTop();
|
let rowY = getOffset(rowElement).top;
|
||||||
let pageY = event.pageY;
|
let pageY = event.pageY;
|
||||||
let rowMidY = rowY + getOuterHeight(rowElement) / 2;
|
let rowMidY = rowY + getOuterHeight(rowElement) / 2;
|
||||||
let prevRowElement = rowElement.previousElementSibling;
|
let prevRowElement = rowElement.previousElementSibling;
|
||||||
|
|
Loading…
Reference in New Issue