File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1042,7 +1042,7 @@ export class GridStack {
1042
1042
1043
1043
/** returns the current number of rows, which will be at least `minRow` if set */
1044
1044
public getRow ( ) : number {
1045
- return Math . max ( this . engine . getRow ( ) , this . opts . minRow ) ;
1045
+ return Math . max ( this . engine . getRow ( ) , this . opts . minRow || 0 ) ;
1046
1046
}
1047
1047
1048
1048
/**
@@ -1300,8 +1300,8 @@ export class GridStack {
1300
1300
if ( o . float !== undefined ) this . float ( o . float ) ;
1301
1301
if ( o . row !== undefined ) { opts . minRow = opts . maxRow = opts . row = o . row ; }
1302
1302
else {
1303
- if ( opts . minRow !== undefined ) opts . minRow = o . minRow ;
1304
- if ( opts . maxRow !== undefined ) opts . maxRow = o . maxRow ;
1303
+ if ( o . minRow !== undefined ) opts . minRow = o . minRow ;
1304
+ if ( o . maxRow !== undefined ) opts . maxRow = o . maxRow ;
1305
1305
}
1306
1306
if ( o . children ?. length ) this . load ( o . children ) ;
1307
1307
// TBD if we have a real need for these (more complex code)
You can’t perform that action at this time.
0 commit comments