Skip to content

Commit c2c4f9d

Browse files
authored
MAGETWO-66640: Fix a bug resulting in incorrect offsets with dynamic row drag-n-drop functionality #7161
2 parents a815a3a + da05fb0 commit c2c4f9d

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/dynamic-rows

1 file changed

+2
-2
lines changed

app/code/Magento/Ui/view/base/web/js/dynamic-rows/dnd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ define([
136136
drEl.instanceCtx = this.getRecord(originRecord[0]);
137137
drEl.eventMousedownY = isTouchDevice ? event.originalEvent.touches[0].pageY : event.pageY;
138138
drEl.minYpos =
139-
$table.offset().top - originRecord.offset().top + $table.find('thead').outerHeight();
140-
drEl.maxYpos = drEl.minYpos + $table.find('tbody').outerHeight() - originRecord.outerHeight();
139+
$table.offset().top - originRecord.offset().top + $table.children('thead').outerHeight();
140+
drEl.maxYpos = drEl.minYpos + $table.children('tbody').outerHeight() - originRecord.outerHeight();
141141
$tableWrapper.append(recordNode);
142142

143143
if (isTouchDevice) {

0 commit comments

Comments
 (0)