-
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
Implement Percentage support for gap styles #1643
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request was exported from Phabricator. Differential Revision: D56002340 |
Summary: X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Differential Revision: D56002340
Summary: X-link: facebook/litho#980 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Differential Revision: D56002340
Summary: X-link: facebook/litho#980 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Differential Revision: D56002340
d863e8d
to
8c67c03
Compare
This pull request was exported from Phabricator. Differential Revision: D56002340 |
Summary: X-link: facebook/litho#980 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
Summary: X-link: facebook/react-native#44067 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
Summary: X-link: facebook/react-native#44067 X-link: facebook/litho#980 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
8c67c03
to
dcb217c
Compare
This pull request was exported from Phabricator. Differential Revision: D56002340 |
We have some tests for this in Taffy's test suite (search for |
Summary: X-link: facebook/litho#980 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
Summary: X-link: facebook/react-native#44067 X-link: facebook/litho#980 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
dcb217c
to
b0b9e72
Compare
Summary: X-link: facebook/react-native#44067 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
This pull request was exported from Phabricator. Differential Revision: D56002340 |
Thank you so much for the feedback on this. I am looking at how to improve our test cases as well as visualization aspect of it. |
Summary: X-link: facebook/litho#980 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
Summary: X-link: facebook/react-native#44067 X-link: facebook/litho#980 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
b0b9e72
to
5e7779c
Compare
Summary: X-link: facebook/react-native#44067 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
This pull request was exported from Phabricator. Differential Revision: D56002340 |
Summary: X-link: facebook/react-native#44067 X-link: facebook/litho#980 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
<div id="row_gap_percent_wrapping_with_flexible_content" style="flex-direction: row; width: 300px; height: 300px; gap: 10%;"> | ||
<div style="flex: 1;"></div> | ||
<div style="flex: 1;"></div> | ||
<div style="flex: 1;"></div> | ||
</div> | ||
|
||
<div id="row_gap_percent_wrapping_with_mixed_flexible_content" style="flex-direction: row; width: 300px; height: 300px; gap: 10%;"> | ||
<div style="width: 10px;"></div> | ||
<div style="flex: 1;"></div> | ||
<div style="width: 10%;"></div> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicoburns Thanks for the test case suggestion.
Summary: X-link: facebook/litho#980 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
5e7779c
to
255d415
Compare
Summary: X-link: facebook/react-native#44067 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
This pull request was exported from Phabricator. Differential Revision: D56002340 |
Summary: X-link: facebook/react-native#44067 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340
This pull request has been merged in cd4a1b8. |
Summary: X-link: facebook/react-native#44067 Pull Request resolved: #980 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340 fbshipit-source-id: c0bc86ac70a1391f115c87da99c2ef411535f68b
Summary: Pull Request resolved: #44067 X-link: facebook/litho#980 X-link: facebook/yoga#1643 Changelog [Internal]: - Added percentage value for flex layout gap - Wired up to pass proper available width and height to implement this feature Reviewed By: NickGerleman Differential Revision: D56002340 fbshipit-source-id: c0bc86ac70a1391f115c87da99c2ef411535f68b
Summary:
Changelog [Internal]:
Differential Revision: D56002340