-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Java bindings for setAlwaysFormsContainingBlock #1540
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request was exported from Phabricator. Differential Revision: D52608259 |
Summary: X-link: facebook/react-native#42192 tsia Differential Revision: D52608259
b5fbdaf
to
eb66c0a
Compare
Summary: X-link: facebook/react-native#42192 tsia Reviewed By: NickGerleman Differential Revision: D52608259
Summary: X-link: facebook/yoga#1540 tsia Reviewed By: NickGerleman Differential Revision: D52608259
This pull request was exported from Phabricator. Differential Revision: D52608259 |
Summary: X-link: facebook/react-native#42191 React native supports transforms and if a node has a transform it will [form a containing block for absolute descendants regardless of position type](https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block). So we need to pass that information into Yoga to ensure this happens. The verbiage for the field "alwaysFormsContainingBlock" is very specific. In a vacuum a node cannot simply "form a containing block". It only forms a containing block in reference to a different node. This can be illustrated in a scenario where we have a static node that is a flex container which has 1 absolute child and 1 relative child. This static node will form a containing block for the relative child but not the absolute one. We could just pass the information on rather something has a transform or not but Yoga is not supposed to know about transforms in general. As a result we have a notion of "always" forming a containing block. Since Yoga is a flexbox spec, non-absolute nodes' containing blocks will ways be their parent. If we add something like a transform to a node then that will also apply to absolute nodes - hence we can say the node will **always** form a CB, no matter who is the descendant. Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D52521160
Summary: X-link: facebook/react-native#42192 tsia Reviewed By: NickGerleman Differential Revision: D52608259
eb66c0a
to
7dc21c6
Compare
Summary: X-link: facebook/react-native#42192 tsia Reviewed By: NickGerleman Differential Revision: D52608259
Summary: X-link: facebook/yoga#1540 tsia Reviewed By: NickGerleman Differential Revision: D52608259
This pull request was exported from Phabricator. Differential Revision: D52608259 |
7dc21c6
to
4e5dafd
Compare
Summary: X-link: facebook/yoga#1540 tsia Reviewed By: NickGerleman Differential Revision: D52608259
This pull request was exported from Phabricator. Differential Revision: D52608259 |
Summary: X-link: facebook/react-native#42192 X-link: facebook/yoga#1540 tsia Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D52608259 fbshipit-source-id: 647ec4e2fe180ace8d6b641e17cd610fa53fe845
This pull request has been merged in 47e9f33. |
Summary: Pull Request resolved: #42192 X-link: facebook/yoga#1540 tsia Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D52608259 fbshipit-source-id: 647ec4e2fe180ace8d6b641e17cd610fa53fe845
Summary: Pull Request resolved: facebook#42192 X-link: facebook/yoga#1540 tsia Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D52608259 fbshipit-source-id: 647ec4e2fe180ace8d6b641e17cd610fa53fe845
Summary: Pull Request resolved: facebook#42192 X-link: facebook/yoga#1540 tsia Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D52608259 fbshipit-source-id: 647ec4e2fe180ace8d6b641e17cd610fa53fe845
Summary: tsia
Differential Revision: D52608259