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 {
10421042
10431043 /** returns the current number of rows, which will be at least `minRow` if set */
10441044 public getRow ( ) : number {
1045- return Math . max ( this . engine . getRow ( ) , this . opts . minRow ) ;
1045+ return Math . max ( this . engine . getRow ( ) , this . opts . minRow || 0 ) ;
10461046 }
10471047
10481048 /**
@@ -1300,8 +1300,8 @@ export class GridStack {
13001300 if ( o . float !== undefined ) this . float ( o . float ) ;
13011301 if ( o . row !== undefined ) { opts . minRow = opts . maxRow = opts . row = o . row ; }
13021302 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 ;
13051305 }
13061306 if ( o . children ?. length ) this . load ( o . children ) ;
13071307 // TBD if we have a real need for these (more complex code)
You can’t perform that action at this time.
0 commit comments