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
In React-Grid-Layout 0.18.3 , when compactType is set to null and preventCollision={false}, elements are arranged as expected.
However, in version 1.5.0 , grid items unexpectedly shift along the Y-axis , which is not the expected behavior.
➡️ I want to use version 1.5.0 but maintain the positioning behavior of 0.18.3.
Set compactType=null and preventCollision={false}.
In 0.18.3 , layout behaves as expected.
In 1.5.0 , items unexpectedly move along the Y-axis instead of keeping their original positions.
Expected behavior
The grid layout in 1.5.0 should behave the same way as in 0.18.3 .
Items should not be dramatically moved along the Y-axis when preventCollision={false}.
react-grid-layout library version
1.5.0
Operating System Version
Windows
Browser
Chrome
Additional context
Actual Behavior
In 1.5.0 , items shift dramatically along the Y-axis , unlike version 0.18.3.
Describe the bug
In React-Grid-Layout 0.18.3 , when compactType is set to null and preventCollision={false}, elements are arranged as expected.
However, in version 1.5.0 , grid items unexpectedly shift along the Y-axis , which is not the expected behavior.
➡️ I want to use version 1.5.0 but maintain the positioning behavior of 0.18.3.
Your Example Website or App
https://codesandbox.io/p/sandbox/1-5-0-grid-96w46p
Steps to Reproduce the Bug or Issue
Expected behavior
The grid layout in 1.5.0 should behave the same way as in 0.18.3 .
Items should not be dramatically moved along the Y-axis when preventCollision={false}.
react-grid-layout library version
1.5.0
Operating System Version
Windows
Browser
Chrome
Additional context
Actual Behavior
Reproducible Example (CodeSandbox)
✔️ Version 0.18.3 (Works as expected)
🔗 CodeSandbox - 0.18.3
❌ Version 1.5.0 (Unexpected Y-axis movement)
🔗 CodeSandbox - 1.5.0
Environment
Additional Context
🙇 Please let me know if this can be resolved. Thank you! 🙏
Screenshots or Videos
(0.18.3 working)

(1.5.0 issue)

The text was updated successfully, but these errors were encountered: