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

Fixup margin: auto and justification behavior for overflowed containers #44069

Closed
wants to merge 1 commit into from

Conversation

NickGerleman
Copy link
Contributor

Summary:
Fixes facebook/yoga#978

  1. Don't allow auto margin spaces to become a negative length
  2. Replicate fallback alignment behavior specified by box-alignment spec that we are using for align-content.

Differential Revision: D56091577

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 13, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56091577

@analysis-bot
Copy link

analysis-bot commented Apr 13, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 19,394,187 +146
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 22,767,822 +140
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: fe9942a
Branch: main

…rs (facebook#44069)

Summary:
X-link: facebook/yoga#1646


Fixes facebook/yoga#978

1. Don't allow auto margin spaces to become a negative length
2. Replicate fallback alignment behavior specified by box-alignment spec that we are using for align-content.

Reviewed By: joevilches

Differential Revision: D56091577
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Apr 17, 2024
…rs (facebook#1646)

Summary:

X-link: facebook/react-native#44069

Fixes facebook#978

1. Don't allow auto margin spaces to become a negative length
2. Replicate fallback alignment behavior specified by box-alignment spec that we are using for align-content.

Reviewed By: joevilches

Differential Revision: D56091577
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D56091577

facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Apr 18, 2024
Summary:
X-link: facebook/yoga#1646

X-link: facebook/react-native#44069

Fixes facebook/yoga#978

1. Don't allow auto margin spaces to become a negative length
2. Replicate fallback alignment behavior specified by box-alignment spec that we are using for align-content.

Reviewed By: joevilches

Differential Revision: D56091577

fbshipit-source-id: 3c02f81f969bb947cdc5c80b15faaa0b0d39c0c2
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f21d9af.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 18, 2024
Copy link

This pull request was successfully merged by @NickGerleman in f21d9af.

When will my fix make it into a release? | How to file a pick request?

facebook-github-bot pushed a commit to facebook/yoga that referenced this pull request Apr 18, 2024
…rs (#1646)

Summary:
Pull Request resolved: #1646

X-link: facebook/react-native#44069

Fixes #978

1. Don't allow auto margin spaces to become a negative length
2. Replicate fallback alignment behavior specified by box-alignment spec that we are using for align-content.

Reviewed By: joevilches

Differential Revision: D56091577

fbshipit-source-id: 3c02f81f969bb947cdc5c80b15faaa0b0d39c0c2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Margin auto allows negative values
3 participants