From 83e11d23d87fb8d236961b28fed95bf249c98993 Mon Sep 17 00:00:00 2001 From: Alain Dumesny Date: Thu, 30 Dec 2021 08:45:26 -0800 Subject: [PATCH] nested grid column:'auto' option * partial fix #1009 * we now have a new column:'auto' option which is used for nested grids to column size themselves to match their container (same # of column) This make sure outside and inside items stay the same size * this will eventually be required when creating grids on the fly dynamically (as good default) * updated nested.html to showcase this --- demo/nested.html | 35 +++++++++++++----------- doc/CHANGES.md | 1 + doc/README.md | 15 +++++++---- src/gridstack.ts | 69 +++++++++++++++++++++++++++++++++++------------- src/types.ts | 7 +++-- 5 files changed, 85 insertions(+), 42 deletions(-) diff --git a/demo/nested.html b/demo/nested.html index e3e8a64a3..00cbb5c90 100644 --- a/demo/nested.html +++ b/demo/nested.html @@ -9,11 +9,13 @@