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

Simplify getting padding + border for cross axis in algorithm #41208

Closed
wants to merge 1 commit into from

Conversation

joevilches
Copy link
Contributor

Summary: Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Differential Revision: D50704177

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 26, 2023
@facebook-github-bot
Copy link
Contributor

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

joevilches added a commit to joevilches/yoga that referenced this pull request Oct 26, 2023
Summary:
X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Differential Revision: D50704177

fbshipit-source-id: aca6b0c457ee0b55eee233919335ed04c51dd9a0
joevilches added a commit to joevilches/yoga that referenced this pull request Oct 26, 2023
…ok#1437)

Summary:
Pull Request resolved: facebook#1437

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Differential Revision: D50704177

fbshipit-source-id: 563780b0a10d2f5851e155fb6d8f8b50073c6ac6
joevilches pushed a commit to joevilches/yoga that referenced this pull request Oct 27, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Differential Revision: D50704177
joevilches pushed a commit to joevilches/yoga that referenced this pull request Oct 27, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Differential Revision: D50704177
joevilches pushed a commit to joevilches/react-native that referenced this pull request Oct 27, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437


Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Differential Revision: D50704177
joevilches pushed a commit to joevilches/react-native that referenced this pull request Oct 27, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437


Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Differential Revision: D50704177
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Oct 27, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 17,634,328 +17
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 21,018,066 +19
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: d11d5f3
Branch: main

joevilches pushed a commit to joevilches/yoga that referenced this pull request Nov 2, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
@facebook-github-bot
Copy link
Contributor

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

joevilches pushed a commit to joevilches/yoga that referenced this pull request Nov 2, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
joevilches pushed a commit to joevilches/react-native that referenced this pull request Nov 2, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437


Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
joevilches pushed a commit to joevilches/react-native that referenced this pull request Nov 2, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437


Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
joevilches pushed a commit to joevilches/yoga that referenced this pull request Nov 2, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
@facebook-github-bot
Copy link
Contributor

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

joevilches pushed a commit to joevilches/react-native that referenced this pull request Nov 2, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437


Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
@facebook-github-bot
Copy link
Contributor

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

joevilches added a commit to joevilches/yoga that referenced this pull request Nov 3, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
@facebook-github-bot
Copy link
Contributor

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

joevilches added a commit to joevilches/react-native that referenced this pull request Nov 3, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437


Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
joevilches pushed a commit to joevilches/yoga that referenced this pull request Nov 7, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
joevilches pushed a commit to joevilches/react-native that referenced this pull request Nov 7, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437


Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
@facebook-github-bot
Copy link
Contributor

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

joevilches pushed a commit to joevilches/yoga that referenced this pull request Nov 7, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
joevilches pushed a commit to joevilches/yoga that referenced this pull request Nov 7, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
@facebook-github-bot
Copy link
Contributor

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

joevilches pushed a commit to joevilches/react-native that referenced this pull request Nov 7, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437


Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
NickGerleman pushed a commit to NickGerleman/yoga that referenced this pull request Nov 7, 2023
…ok#1437)

Summary:
Pull Request resolved: facebook#1437

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

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

fbshipit-source-id: db259b75b19876b9d53e9499cbb81532d3744a03
NickGerleman pushed a commit to NickGerleman/react-native that referenced this pull request Nov 7, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437

Pull Request resolved: facebook#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

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

fbshipit-source-id: db259b75b19876b9d53e9499cbb81532d3744a03
NickGerleman pushed a commit to NickGerleman/yoga that referenced this pull request Nov 7, 2023
…ok#1437)

Summary:
Pull Request resolved: facebook#1437

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

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

fbshipit-source-id: a52075273676955889ddd80494ac34b1094ef04e
NickGerleman pushed a commit to NickGerleman/react-native that referenced this pull request Nov 7, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437

Pull Request resolved: facebook#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

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

fbshipit-source-id: fabc45f55b24a01641f2a1eac3a2028d0aa2f8db
joevilches pushed a commit to joevilches/yoga that referenced this pull request Nov 7, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
joevilches pushed a commit to joevilches/react-native that referenced this pull request Nov 7, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437


Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
@facebook-github-bot
Copy link
Contributor

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

NickGerleman pushed a commit to NickGerleman/react-native that referenced this pull request Nov 7, 2023
…ok#41208)

Summary:
X-link: facebook/yoga#1437

Pull Request resolved: facebook#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

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

fbshipit-source-id: 6abd5d69a84995522587b09152a48d23e8663fd6
NickGerleman pushed a commit to NickGerleman/yoga that referenced this pull request Nov 7, 2023
…ok#1437)

Summary:
Pull Request resolved: facebook#1437

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

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

fbshipit-source-id: 5b843c783e007a6996fe7a6bece21d0f27718038
…ok#41208)

Summary:
X-link: facebook/yoga#1437


Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
joevilches pushed a commit to joevilches/yoga that referenced this pull request Nov 7, 2023
…ok#1437)

Summary:

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177
@facebook-github-bot
Copy link
Contributor

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

facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Nov 7, 2023
Summary:
X-link: facebook/yoga#1437

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177

fbshipit-source-id: 1a091edbfee6482a2bf472aca2980702bd75ad94
facebook-github-bot pushed a commit to facebook/yoga that referenced this pull request Nov 7, 2023
Summary:
Pull Request resolved: #1437

X-link: facebook/react-native#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177

fbshipit-source-id: 1a091edbfee6482a2bf472aca2980702bd75ad94
Copy link

github-actions bot commented Nov 7, 2023

This pull request was successfully merged by @joevilches in 1984bcc.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions bot added the Merged This PR has been merged. label Nov 7, 2023
Othinn pushed a commit to Othinn/react-native that referenced this pull request Jan 9, 2024
…ok#41208)

Summary:
X-link: facebook/yoga#1437

Pull Request resolved: facebook#41208

Reading through the sizing logic and this seemed a bit redundant/confusing. Lets use the same function we just used for the main axis for the cross axis as well so people do not think its special. Also we will need one less variable. The reason this was done it seems is because we need the leading padding + border elsewhere so this is technically a few less steps but this is cleaner

Reviewed By: NickGerleman

Differential Revision: D50704177

fbshipit-source-id: 1a091edbfee6482a2bf472aca2980702bd75ad94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants