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

Enable previously broken absolute positioning tests #1488

Closed
wants to merge 10 commits into from

Conversation

joevilches
Copy link
Contributor

Summary: These were disabled when they were written because they were broken. The recent changes made them pass now so lets enable them. I also added another test that is already passing

Reviewed By: NickGerleman

Differential Revision: D51404875

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 4, 2023
Summary:
Pull Request resolved: facebook#1488

These were disabled when they were written because they were broken. The recent changes made them pass now so lets enable them. I also added another test that is already passing

Reviewed By: NickGerleman

Differential Revision: D51404875

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

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

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 5, 2023
Summary:
Pull Request resolved: facebook#1488

These were disabled when they were written because they were broken. The recent changes made them pass now so lets enable them. I also added another test that is already passing

Reviewed By: NickGerleman

Differential Revision: D51404875

fbshipit-source-id: 7c38fafa6e47678d027c438df0671f9a0b6f26bf
@facebook-github-bot
Copy link
Contributor

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

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 6, 2023
Summary:
Pull Request resolved: facebook#1488

These were disabled when they were written because they were broken. The recent changes made them pass now so lets enable them. I also added another test that is already passing

Reviewed By: NickGerleman

Differential Revision: D51404875

fbshipit-source-id: 755c28fc8aa9c6b0819f4992122e7922842cf44d
@facebook-github-bot
Copy link
Contributor

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

joevilches added a commit to joevilches/yoga that referenced this pull request Dec 7, 2023
Summary:
Pull Request resolved: facebook#1488

These were disabled when they were written because they were broken. The recent changes made them pass now so lets enable them. I also added another test that is already passing

Reviewed By: NickGerleman

Differential Revision: D51404875

fbshipit-source-id: cfdd5bb97569e08caacbd92c2939d74256c5e41e
Joe Vilches and others added 10 commits December 7, 2023 11:54
…ng absolute node's position

Summary:
Absolute nodes can be laid out by themselves and do not have to care about what is happening to their siblings. Because of this we can make `positionAbsoluteChild` the sole place where we handle this logic. Right now that is scattered around algorithm with many `if (child is absolute)` cases everywhere. This makes implementing position static a lot harder since we are relying on the CB to do all this work, not the parent.

With this change the only time we set position for an absolute node and it matter (i.e. not overwritten) is in `positionAbsoluteChild`

Reviewed By: NickGerleman

Differential Revision: D51290723

fbshipit-source-id: 26f2d1b4daf7e2ab9ee8edc92f591cdc66bb177e
Summary:
Pull Request resolved: facebook#1482

X-link: facebook/react-native#41685

This is the final step (that I know of) to get the core features of static working. Here we turn on all of the tests and pass down the correct owner size for the call to `calculateLayoutInternal` that is in `layoutAbsoluteChild`

Differential Revision: https://www.internalfb.com/diff/D51293606?entry_point=27

fbshipit-source-id: 1059ea53aeef7ec242834c62d933abee5ba69742
…ox (facebook#1485)

Summary:
Pull Request resolved: facebook#1485

X-link: facebook/react-native#41686

The size of the containing block is the size of the padding box of the containing node for absolute nodes. We were looking at  `containingNode->getLayout().measuredDimension(Dimension::Width)` which is the border box. So we need to subtract the border from this.

Added a test that was failing before this change as well

Differential Revision: https://www.internalfb.com/diff/D51330526?entry_point=27

fbshipit-source-id: 9bf0c515264359557f168465bc0daf060f665a0d
Differential Revision: https://www.internalfb.com/diff/D51333812?entry_point=27

fbshipit-source-id: 90f59dc4d274f9b50a9dc105a3d989cd3fe61999
Summary: Tsia. Added test and accounted for parent padding

Differential Revision: https://www.internalfb.com/diff/D51374086?entry_point=27

fbshipit-source-id: ed28788491323f71b8e657673c97e8f6c5b4b8d6
…rtain case

Differential Revision: https://www.internalfb.com/diff/D51376309?entry_point=27

fbshipit-source-id: 62e3df0ceba855251edcb376c74fb54fa917d292
…ustifying

Differential Revision: https://www.internalfb.com/diff/D51383625?entry_point=27

fbshipit-source-id: fb44e7a24210fcad7e01f93d010d93ffece899c7
Differential Revision: https://www.internalfb.com/diff/D51383792?entry_point=27

fbshipit-source-id: 0c6be88a6ec57a38b3478dd14b1ae618d6745e54
Summary: In the previous diffs I fixed problems with justifying absolute nodes. The same issues plague aligning so I fixed them in the same way. Added tests that were failing before but now passing

Differential Revision: https://www.internalfb.com/diff/D51404489?entry_point=27

fbshipit-source-id: 4d0e7779eb0af2996b119b569ac9e73c1bf11929
Summary:
Pull Request resolved: facebook#1488

These were disabled when they were written because they were broken. The recent changes made them pass now so lets enable them. I also added another test that is already passing

Reviewed By: NickGerleman

Differential Revision: D51404875

fbshipit-source-id: 83161b40177e5af0469d55a93477bc0846c060f4
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 1ea5756.

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.

2 participants