From e852c2aaa62f4d7027713f96df0587272cbe6655 Mon Sep 17 00:00:00 2001 From: Luciano Martorella Date: Mon, 12 May 2025 09:30:53 +0200 Subject: [PATCH] - Avoid reflow via setting minRow --- doc/README.md | 2 +- src/gridstack.ts | 4 +++- src/types.ts | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/README.md b/doc/README.md index e4c31a9e..931c2552 100644 --- a/doc/README.md +++ b/doc/README.md @@ -116,7 +116,7 @@ gridstack.js API - `marginBottom`: numberOrString - `marginLeft`: numberOrString - `maxRow` - maximum rows amount. Default is `0` which means no max. -- `minRow` - minimum rows amount which is handy to prevent grid from collapsing when empty. Default is `0`. You can also do this with `min-height` CSS attribute on the grid div in pixels, which will round to the closest row. +- `minRow` - minimum rows amount which is handy to prevent grid from collapsing when empty. Default is `0`. When no set set, the `min-height` CSS attribute on the grid div (in pixels) can be used as well, which will round to the closest row. - `nonce` - If you are using a nonce-based Content Security Policy, pass your nonce here and GridStack will add it to the `