File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Ui/view/base/web/js/dynamic-rows Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ define([
124124 originRecord = $ ( elem ) . parents ( 'tr' ) . eq ( 0 ) ,
125125 drEl = this . draggableElement ,
126126 $table = $ ( elem ) . parents ( 'table' ) . eq ( 0 ) ,
127- $tableWrapper = $table . parent ( ) ;
127+ $tableWrapper = $table . parent ( ) ,
128+ outerHight =
129+ $table . children ( 'thead' ) . outerHeight ( ) === undefined ? 0 : $table . children ( 'thead' ) . outerHeight ( ) ;
128130
129131 this . disableScroll ( ) ;
130132 $ ( recordNode ) . addClass ( this . draggableElementClass ) ;
@@ -135,7 +137,7 @@ define([
135137 drEl . instanceCtx = this . getRecord ( originRecord [ 0 ] ) ;
136138 drEl . eventMousedownY = this . getPageY ( event ) ;
137139 drEl . minYpos =
138- $table . offset ( ) . top - originRecord . offset ( ) . top + $table . children ( 'thead' ) . outerHeight ( ) ;
140+ $table . offset ( ) . top - originRecord . offset ( ) . top + outerHight ;
139141 drEl . maxYpos = drEl . minYpos + $table . children ( 'tbody' ) . outerHeight ( ) - originRecord . outerHeight ( ) ;
140142 $tableWrapper . append ( recordNode ) ;
141143 this . body . on ( 'mousemove touchmove' , this . mousemoveHandler ) ;
You can’t perform that action at this time.
0 commit comments