Skip to content

Commit dd7803a

Browse files
committed
Issue-36051: Magento Admin Product Custom Options Not Movable / Draggable
1 parent 9aa35fd commit dd7803a

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
@@ -135,8 +135,8 @@ define([
135135
drEl.instanceCtx = this.getRecord(originRecord[0]);
136136
drEl.eventMousedownY = this.getPageY(event);
137137
drEl.minYpos =
138-
$table.offset().top - originRecord.offset().top + $table.children('thead').outerHeight();
139-
drEl.maxYpos = drEl.minYpos + $table.children('tbody').outerHeight() - originRecord.outerHeight();
138+
$table.offset().top - originRecord.offset().top + ($table.children('thead').outerHeight() || 0);
139+
drEl.maxYpos = drEl.minYpos + ($table.children('tbody').outerHeight() || 0) - originRecord.outerHeight();
140140
$tableWrapper.append(recordNode);
141141
this.body.on('mousemove touchmove', this.mousemoveHandler);
142142
this.body.on('mouseup touchend', this.mouseupHandler);

0 commit comments

Comments
 (0)