Skip to content

Commit 990456d

Browse files
committed
add resizeToContentCheck() on nested grids
1 parent a46fd5d commit 990456d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gridstack.ts

+4
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,10 @@ export class GridStack {
577577
subGrid.makeWidget(node.el, node);
578578
}
579579
}
580+
581+
// if sizedToContent, we need to re-calc the size of ourself
582+
this.resizeToContentCheck(false, node);
583+
580584
return subGrid;
581585
}
582586

0 commit comments

Comments
 (0)