Skip to content

Commit

Permalink
MAGETWO-67753: Fix a bug resulting in incorrect offsets with dynamic …
Browse files Browse the repository at this point in the history
…row drag-n-drop functionality #9376
  • Loading branch information
ishakhsuvarov authored Apr 27, 2017
2 parents 97a0832 + 78c2b0d commit dd06275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Ui/view/base/web/js/dynamic-rows/dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ define([
drEl.instance = recordNode = this.processingStyles(recordNode, elem);
drEl.instanceCtx = this.getRecord(originRecord[0]);
drEl.eventMousedownY = isTouchDevice ? event.originalEvent.touches[0].pageY : event.pageY;
drEl.minYpos = $table.offset().top - originRecord.offset().top + $table.find('thead').outerHeight();
drEl.maxYpos = drEl.minYpos + $table.find('tbody').outerHeight() - originRecord.outerHeight();
drEl.minYpos = $table.offset().top - originRecord.offset().top + $table.children('thead').outerHeight();
drEl.maxYpos = drEl.minYpos + $table.children('tbody').outerHeight() - originRecord.outerHeight();
$tableWrapper.append(recordNode);

if (isTouchDevice) {
Expand Down

0 comments on commit dd06275

Please sign in to comment.