react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Use flexStart functions instead of inlineStart ones in cases where setting position

Open joevilches opened this issue 2 years ago • 8 comments

Summary: In all cases where we had to set a position we define what edge to set it on. All calls here set the flex edge, not the inline one. That makes sense because the flex start edge is most important when applying some of the key parts of the flexbox algorithm, which is in charge of deciding the position for the most part (we resolve flex direction to RowReverse/Row when in RTL). While all the inline stuff is mainly used to set the sides for specific layout values like margin, border, and padding.

I also added a test case here for 2 of the callsites changed, but the rest either fail for different reasons or get overriden due to the remaining logic. Still I think we should be consistent.

Differential Revision: D51187444

joevilches avatar Nov 10 '23 21:11 joevilches

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

facebook-github-bot avatar Nov 10 '23 21:11 facebook-github-bot

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 17,646,346 -31
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 21,033,924 -37
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: d9fa64ee3e405b25d80534a0015f85f042b2618f Branch: main

analysis-bot avatar Nov 10 '23 21:11 analysis-bot

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

facebook-github-bot avatar Nov 13 '23 18:11 facebook-github-bot

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

facebook-github-bot avatar Nov 13 '23 18:11 facebook-github-bot

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

facebook-github-bot avatar Nov 14 '23 04:11 facebook-github-bot

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

facebook-github-bot avatar Nov 14 '23 19:11 facebook-github-bot

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

facebook-github-bot avatar Nov 17 '23 18:11 facebook-github-bot

This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar May 16 '24 05:05 github-actions[bot]

This PR was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar May 23 '24 05:05 github-actions[bot]

This PR was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar May 23 '24 05:05 github-actions[bot]