From fa38ff6de5e9ce7f6153513583a4b0cedc5cd5b6 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 6 Sep 2019 10:22:14 +0800 Subject: [PATCH] [debug] fix resize detect maxRows --- lib/GridItem.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GridItem.jsx b/lib/GridItem.jsx index f10a7f3ae..40b1cec8b 100644 --- a/lib/GridItem.jsx +++ b/lib/GridItem.jsx @@ -499,7 +499,7 @@ export default class GridItem extends React.Component { w = Math.max(Math.min(w, maxW), minW); h = Math.max(Math.min(h, maxH), minH); - if (isBounded && h + y >= maxRows) { + if (isBounded && h + y > maxRows) { h = Math.max(h - y, 1); }