Skip to content

Commit fb564df

Browse files
Merge remote-tracking branch '36072/fix-issue-36051' into comm_voted_v1
2 parents 137bd37 + 47833fe commit fb564df

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,8 @@ define([
136136
drEl.instance = recordNode = this.processingStyles(recordNode, elem);
137137
drEl.instanceCtx = this.getRecord(originRecord[0]);
138138
drEl.eventMousedownY = this.getPageY(event);
139-
drEl.minYpos =
140-
$table.offset().top - originRecord.offset().top + outerHight;
141-
drEl.maxYpos = drEl.minYpos + $table.children('tbody').outerHeight() - originRecord.outerHeight();
139+
drEl.minYpos = $table.offset().top - originRecord.offset().top + outerHight;
140+
drEl.maxYpos = drEl.minYpos + ($table.children('tbody').outerHeight() || 0) - originRecord.outerHeight();
142141
$tableWrapper.append(recordNode);
143142
this.body.on('mousemove touchmove', this.mousemoveHandler);
144143
this.body.on('mouseup touchend', this.mouseupHandler);

0 commit comments

Comments
 (0)