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([
124
124
originRecord = $ ( elem ) . parents ( 'tr' ) . eq ( 0 ) ,
125
125
drEl = this . draggableElement ,
126
126
$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 ( ) ;
128
130
129
131
this . disableScroll ( ) ;
130
132
$ ( recordNode ) . addClass ( this . draggableElementClass ) ;
@@ -135,7 +137,7 @@ define([
135
137
drEl . instanceCtx = this . getRecord ( originRecord [ 0 ] ) ;
136
138
drEl . eventMousedownY = this . getPageY ( event ) ;
137
139
drEl . minYpos =
138
- $table . offset ( ) . top - originRecord . offset ( ) . top + $table . children ( 'thead' ) . outerHeight ( ) ;
140
+ $table . offset ( ) . top - originRecord . offset ( ) . top + outerHight ;
139
141
drEl . maxYpos = drEl . minYpos + $table . children ( 'tbody' ) . outerHeight ( ) - originRecord . outerHeight ( ) ;
140
142
$tableWrapper . append ( recordNode ) ;
141
143
this . body . on ( 'mousemove touchmove' , this . mousemoveHandler ) ;
You can’t perform that action at this time.
0 commit comments