File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export class GridStackEngine {
60
60
if ( flag ) {
61
61
this . _prevFloat = this . _float ;
62
62
this . _float = true ; // let things go anywhere for now... will restore and possibly reposition later
63
+ this . cleanNodes ( ) ;
63
64
this . saveInitial ( ) ; // since begin update (which is called multiple times) won't do this
64
65
} else {
65
66
this . _float = this . _prevFloat ;
Original file line number Diff line number Diff line change @@ -727,6 +727,7 @@ export class GridStack {
727
727
public batchUpdate ( flag = true ) : GridStack {
728
728
this . engine . batchUpdate ( flag ) ;
729
729
if ( ! flag ) {
730
+ this . _updateContainerHeight ( ) ;
730
731
this . _triggerRemoveEvent ( ) ;
731
732
this . _triggerAddEvent ( ) ;
732
733
this . _triggerChangeEvent ( ) ;
@@ -1580,6 +1581,8 @@ export class GridStack {
1580
1581
this . prevWidth = this . el . clientWidth
1581
1582
// console.log('onResize ', this.el.clientWidth);
1582
1583
1584
+ this . batchUpdate ( ) ;
1585
+
1583
1586
// see if we're nested and take our column count from our parent....
1584
1587
let columnChanged = false ;
1585
1588
if ( this . _autoColumn && this . parentGridItem ) {
@@ -1611,6 +1614,8 @@ export class GridStack {
1611
1614
}
1612
1615
} ) ;
1613
1616
1617
+ this . batchUpdate ( false ) ;
1618
+
1614
1619
return this ;
1615
1620
}
1616
1621
You can’t perform that action at this time.
0 commit comments