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

Fix percent absolute position and size calcuate different with web #1028

Closed
wants to merge 1 commit into from

Conversation

dislon
Copy link

@dislon dislon commented Sep 1, 2020

This PR fixes issue #850

Additionally,

  • Fix the gentest compatibility with chrome > 75 reference to Fix gentest compatibility with chrome > 75 #1011
  • Regenerated the unit tests by run gentest/gentest.rb
  • Appended ^yoga/tests/*.cpp in .clang-format-ignore.
  • Move the nonautomatic generation tests in YGFlexTest.cpp , YGMinMaxDimensionTest.cpp and YGPercentageTest.cpp to a separate file
  • Fix failed test cases: YogaNodeStylePropertiesTest.java

@facebook-github-bot
Copy link
Contributor

Hi @dislon!

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@dislon dislon force-pushed the fix_layout_absolute_percentage branch 3 times, most recently from 5c82d6b to 318e0a3 Compare September 1, 2020 11:42
@dislon
Copy link
Author

dislon commented Sep 1, 2020

@SidharthGuglani could you take a look, please? Thank you!

@dislon dislon force-pushed the fix_layout_absolute_percentage branch from 13e1217 to 4909280 Compare December 14, 2020 12:31
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Dec 29, 2022
…h web" behind experimental feature (facebook#1028)

Fixes facebook#850

facebook#850 describes a conformance issue where positioning of an absolute child using percentages is not calculated againt the correct box size.

This takes the fix for that in facebook#1028, regenerates tests, and fixes tests so that the experimental feature can be enabled. Goal is to run this as an experiment internally to see if we can enable by default.

Changelog:
[Internal]
@NickGerleman
Copy link
Contributor

A lot of the repo has changed since this PR was opened, but I created a new PR #1201 to accept the conformance fix behind a feature flag, so we can test how breaking it is and make default.

facebook-github-bot pushed a commit that referenced this pull request Jan 8, 2023
…h web" behind experimental feature (#1028) (#1201)

Summary:
Fixes #850

#850 describes a conformance issue where positioning of an absolute child using percentages is not calculated against the correct box size.

This takes the fix for that in #1028, regenerates tests, and fixes tests so that the experimental feature can be enabled. Goal is to run this as an experiment internally to see if we can enable by default.

Changelog:
[Internal]

Pull Request resolved: #1201

Reviewed By: yungsters

Differential Revision: D42282358

Pulled By: NickGerleman

fbshipit-source-id: 57c0dd9b0f1c47cb9335ff6e13d44b4646e5fa58
facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Jan 8, 2023
…h web" behind experimental feature (#1028) (#1201)

Summary:
Fixes facebook/yoga#850

facebook/yoga#850 describes a conformance issue where positioning of an absolute child using percentages is not calculated against the correct box size.

This takes the fix for that in facebook/yoga#1028, regenerates tests, and fixes tests so that the experimental feature can be enabled. Goal is to run this as an experiment internally to see if we can enable by default.

Changelog:
[Internal]

X-link: facebook/yoga#1201

Reviewed By: yungsters

Differential Revision: D42282358

Pulled By: NickGerleman

fbshipit-source-id: 57c0dd9b0f1c47cb9335ff6e13d44b4646e5fa58
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Jan 8, 2023
…h web" behind experimental feature (#1028) (#1201)

Summary:
Fixes facebook/yoga#850

facebook/yoga#850 describes a conformance issue where positioning of an absolute child using percentages is not calculated against the correct box size.

This takes the fix for that in facebook/yoga#1028, regenerates tests, and fixes tests so that the experimental feature can be enabled. Goal is to run this as an experiment internally to see if we can enable by default.

Changelog:
[Internal]

X-link: facebook/yoga#1201

Reviewed By: yungsters

Differential Revision: D42282358

Pulled By: NickGerleman

fbshipit-source-id: 57c0dd9b0f1c47cb9335ff6e13d44b4646e5fa58
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…h web" behind experimental feature (facebook#1028) (facebook#1201)

Summary:
Fixes facebook/yoga#850

facebook/yoga#850 describes a conformance issue where positioning of an absolute child using percentages is not calculated against the correct box size.

This takes the fix for that in facebook/yoga#1028, regenerates tests, and fixes tests so that the experimental feature can be enabled. Goal is to run this as an experiment internally to see if we can enable by default.

Changelog:
[Internal]

X-link: facebook/yoga#1201

Reviewed By: yungsters

Differential Revision: D42282358

Pulled By: NickGerleman

fbshipit-source-id: 57c0dd9b0f1c47cb9335ff6e13d44b4646e5fa58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants