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

Fixing layout projection with motion(Fragment) nodes #2605

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

mattgperry
Copy link
Collaborator

This PR skips adding motion(Fragment) nodes to the layout projection tree.

We added these nodes to allow animating variants via a renderless component rather than being bound to a div etc (@adamseckel has more context)

The problem with these nodes is layout animation scale correction is presumed to be performed by a child node, thus these nodes were swallowing the scale corrective calculations.

@@ -20,6 +20,13 @@ export interface DOMVisualElementOptions {
*/
allowTransformNone?: boolean

/**
* If `true`, this element will be included in the projection tree.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If true or undefined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point will make this stricter

@mattgperry mattgperry added the automerge Land this PR label Apr 5, 2024
@mergetron mergetron bot merged commit 9b176d6 into main-sync Apr 5, 2024
1 check passed
@mergetron mergetron bot deleted the fix/fragment-layout-projection branch April 5, 2024 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Land this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants