You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having issue with height of grid when setting custom rowHeight & margin. Row height is also adding margin into its height calculation.
For example: rowHeight = 20 & margin = [12,12], then final rowHeight of grid will be 1 * 20(rowHeight) 12(margin[0]).
Describe the bug
Having issue with height of grid when setting custom rowHeight & margin. Row height is also adding margin into its height calculation.
For example: rowHeight = 20 & margin = [12,12], then final rowHeight of grid will be 1 * 20(rowHeight) 12(margin[0]).
Your Example Website or App
https://codesandbox.io/p/sandbox/infallible-bessie-rlpvdz?file=/src/App.tsx:17,38
Steps to Reproduce the Bug or Issue
Expected behavior
Card 1 is taking 20 px height as expected.
But card 2 & 3 height should be 2 * 20px = 40px & 3 * 20px = 60px respectively
react-grid-layout library version
1.4.4
Operating System Version
macOS
Browser
Chrome
Additional context
No response
Screenshots or Videos
The text was updated successfully, but these errors were encountered: