File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ export class GridStack {
233
233
this . _isAutoCellHeight = ( this . opts . cellHeight === 'auto' ) ;
234
234
if ( this . _isAutoCellHeight ) {
235
235
// make the cell square initially
236
- this . cellHeight ( this . cellWidth ( ) , true ) ;
236
+ this . cellHeight ( Math . round ( this . cellWidth ( ) ) , true ) ;
237
237
} else {
238
238
this . cellHeight ( this . opts . cellHeight , true ) ;
239
239
}
@@ -1500,7 +1500,7 @@ export class GridStack {
1500
1500
*/
1501
1501
private _onResizeHandler ( ) : GridStack {
1502
1502
if ( this . _isAutoCellHeight ) {
1503
- Utils . throttle ( ( ) => { this . cellHeight ( this . cellWidth ( ) , false ) } , 100 ) ;
1503
+ Utils . throttle ( ( ) => { this . cellHeight ( Math . round ( this . cellWidth ( ) ) , false ) } , 100 ) ;
1504
1504
}
1505
1505
1506
1506
if ( ! this . opts . disableOneColumnMode && this . el . clientWidth <= this . opts . minWidth ) {
You can’t perform that action at this time.
0 commit comments