Skip to content

Commit

Permalink
[debug] fix resize detect maxRows
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian committed Sep 6, 2019
1 parent 61624a4 commit fa38ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GridItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ export default class GridItem extends React.Component<Props, State> {
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);
}

Expand Down

0 comments on commit fa38ff6

Please sign in to comment.