Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve span when reordering #6641

Closed
ruggi opened this issue Nov 14, 2024 · 0 comments · Fixed by #6642
Closed

Preserve span when reordering #6641

ruggi opened this issue Nov 14, 2024 · 0 comments · Fixed by #6642
Assignees

Comments

@ruggi
Copy link
Contributor

ruggi commented Nov 14, 2024

No description provided.

@ruggi ruggi self-assigned this Nov 14, 2024
ruggi added a commit that referenced this issue Nov 14, 2024
**Problem:**

Spans (or otherwise 1+ sized elements) are not preserved when using
`gridReorderStrategy`.

**Fix:**

When running the reorder strategy, instead of nuking all positioning
props only nuke the ones which are not used and, for elements that
occupy multiple cells, set the respective width or height using the
`span` syntax on the correct shorthand.

I also took this chance to move the reorder tests to their own file (and
added the new tests there).

Fixes #6641
seanparsons pushed a commit that referenced this issue Nov 18, 2024
**Problem:**

Spans (or otherwise 1+ sized elements) are not preserved when using
`gridReorderStrategy`.

**Fix:**

When running the reorder strategy, instead of nuking all positioning
props only nuke the ones which are not used and, for elements that
occupy multiple cells, set the respective width or height using the
`span` syntax on the correct shorthand.

I also took this chance to move the reorder tests to their own file (and
added the new tests there).

Fixes #6641
liady pushed a commit that referenced this issue Dec 13, 2024
**Problem:**

Spans (or otherwise 1+ sized elements) are not preserved when using
`gridReorderStrategy`.

**Fix:**

When running the reorder strategy, instead of nuking all positioning
props only nuke the ones which are not used and, for elements that
occupy multiple cells, set the respective width or height using the
`span` syntax on the correct shorthand.

I also took this chance to move the reorder tests to their own file (and
added the new tests there).

Fixes #6641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant