Skip to content

Fix issue with flexShrink#53758

Closed
rozele wants to merge 1 commit into
react:mainfrom
rozele:export-D82313674
Closed

Fix issue with flexShrink#53758
rozele wants to merge 1 commit into
react:mainfrom
rozele:export-D82313674

Conversation

@rozele

@rozele rozele commented Sep 12, 2025

Copy link
Copy Markdown
Contributor

Summary:
In cases where the remaining space for flex shrink is negative, we can get into a state where the totalFlexShrinkScaledFactors get's infintesimally small, but likely should just be floored to zero.

This manifests in issues where flexShrink nodes are suddenly given way too much space, and generally only manifests in an issue if these flexShrink nodes have self-measuring children (such as text).

Checking if the value is approximately zero appears to fix bugs for flexShrink.

Differential Revision: D82313674

@meta-cla meta-cla 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 Sep 12, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@rozele has exported this pull request. If you are a Meta employee, you can view the originating diff in D82313674.

rozele added a commit to rozele/yoga that referenced this pull request Sep 15, 2025
Summary:
X-link: react/react-native#53758

In cases where the remaining space for flex shrink is negative, we can get into a state where the `totalFlexShrinkScaledFactors` get's infintesimally small, but likely should just be floored to zero.

This manifests in issues where flexShrink nodes are suddenly given way too much space, and generally only manifests in an issue if these flexShrink nodes have self-measuring children (such as text).

Checking if the value is approximately zero appears to fix bugs for flexShrink.

Reviewed By: andrewdacenko

Differential Revision: D82313674
rozele added a commit to rozele/yoga that referenced this pull request Oct 11, 2025
Summary:

X-link: react/react-native#53758

In cases where the remaining space for flex shrink is negative, we can get into a state where the `totalFlexShrinkScaledFactors` get's infintesimally small, but likely should just be floored to zero.

This manifests in issues where flexShrink nodes are suddenly given way too much space, and generally only manifests in an issue if these flexShrink nodes have self-measuring children (such as text).

Checking if the value is approximately zero appears to fix bugs for flexShrink.

Reviewed By: andrewdacenko

Differential Revision: D82313674
Summary:
X-link: react/yoga#1855


In cases where the remaining space for flex shrink is negative, we can get into a state where the `totalFlexShrinkScaledFactors` get's infintesimally small, but likely should just be floored to zero.

This manifests in issues where flexShrink nodes are suddenly given way too much space, and generally only manifests in an issue if these flexShrink nodes have self-measuring children (such as text).

Checking if the value is approximately zero appears to fix bugs for flexShrink.

Reviewed By: andrewdacenko

Differential Revision: D82313674
@meta-codesync

meta-codesync Bot commented Oct 11, 2025

Copy link
Copy Markdown

@rozele has exported this pull request. If you are a Meta employee, you can view the originating Diff in D82313674.

rozele added a commit to rozele/yoga that referenced this pull request Oct 11, 2025
Summary:

X-link: react/react-native#53758

In cases where the remaining space for flex shrink is negative, we can get into a state where the `totalFlexShrinkScaledFactors` get's infintesimally small, but likely should just be floored to zero.

This manifests in issues where flexShrink nodes are suddenly given way too much space, and generally only manifests in an issue if these flexShrink nodes have self-measuring children (such as text).

Checking if the value is approximately zero appears to fix bugs for flexShrink.

Reviewed By: andrewdacenko

Differential Revision: D82313674
@react-native-bot

Copy link
Copy Markdown
Collaborator

This PR is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label.

@react-native-bot react-native-bot added Stale There has been a lack of activity on this issue and it may be closed soon. and removed Stale There has been a lack of activity on this issue and it may be closed soon. labels Apr 10, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

Closing this PR as the diff D82313674 has been abandoned internally.

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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants