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

Adds QuirkSetting to use YGExperimentalFeatureWebFlexBasis #10661

Merged
3 commits merged into from
Oct 6, 2022

Conversation

rozele
Copy link
Collaborator

@rozele rozele commented Sep 30, 2022

Description

Type of Change

Erase all that don't apply.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Why

By default, Yoga will cache flex basis values to avoid expensive recomputation. However, there are some scenarios, particularly when resizing the window, where cached layout values from Yoga combined with cached flex basis values can produce incorrect results.

Resolves #9343

What

This change adds a new QuirkSetting to opt-in to the YGExperimentalFeatureWebFlexBasis option in Yoga for apps where re-use of this cached flex basis value is problematic. We'll keep this opt-in for now, as it is likely to impact performance of Yoga layout.

Testing

CI is green. Results of opting into this QuirkSetting may vary in different apps both w.r.t. to performance and potentially layout results.

By default, Yoga will cache flex basis values to avoid expensive
recomputation. However, there are some scenarios, particularly when
resizing the window, where cached layout values from Yoga combined with
cached flex basis values can produce incorrect results.

This change adds a new QuirkSetting to opt-in to the
YGExperimentalFeatureWebFlexBasis option in Yoga for apps where re-use
of this cached flex basis value is problematic. We'll keep this opt-in
for now, as it is likely to impact performance of Yoga layout.

Resolves microsoft#9343
Copy link
Contributor

@jonthysell jonthysell left a comment

Choose a reason for hiding this comment

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

Fix the copy paste typo, then good to go.

@ghost ghost added the Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) label Oct 5, 2022
@jonthysell
Copy link
Contributor

@msftbot please delay 6 hours before merging this

@ghost ghost added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label Oct 6, 2022
@ghost
Copy link

ghost commented Oct 6, 2022

Hello @jonthysell!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Thu, 06 Oct 2022 23:33:24 GMT, which is in 6 hours

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@ghost ghost merged commit 07f1b90 into microsoft:main Oct 6, 2022
@rozele rozele deleted the issue9343 branch October 7, 2022 13:48
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Layout Area: Text AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React Native occasionally truncates text
2 participants