Skip to content

fix: Horizontal grid not laid out again after changing rows - #647

Draft
MatiPl01 wants to merge 1 commit into
mainfrom
fix/horizontal-grid-rows-change
Draft

MatiPl01 wants to merge 1 commit into
mainfrom
fix/horizontal-grid-rows-change

Conversation

@MatiPl01

Copy link
Copy Markdown
Owner

Description

Changing rows on a horizontal Sortable.Grid reset the item measurements. Item widths do not depend on the number of rows, so the items never reported them again: they stayed in the old arrangement and could not be dragged until the grid was remounted.

The measurements are now reset only for a vertical grid, where the item width changes with columns.

Testing

New jest test, fails on main.

Evidence
Test on main before-test-on-main.txt
Test with the fix after-test-with-fix.txt

@MatiPl01 MatiPl01 self-assigned this Nov 25, 2026
@vercel

vercel Bot commented Nov 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
react-native-sortables-docs Ignored Ignored Nov 25, 2026 7:40pm UTC

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant