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

Fix issue where padding is resolved against wrong reference length #1715

Closed
wants to merge 1 commit into from

Conversation

joevilches
Copy link
Contributor

Summary:
X-link: facebook/react-native#46799

Content box impl had a bug where we resolved padding % against the same reference length as the dimensions. Padding should always be against containing block's width. This is also true for width, but not for height, which should be against containing block's height.

This just pipes the width into our box sizing functions.

Changelog: [Internal}

Differential Revision: D63787577

Copy link

vercel bot commented Oct 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yoga-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2024 7:04pm

@facebook-github-bot
Copy link
Contributor

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

joevilches added a commit to joevilches/react-native that referenced this pull request Oct 3, 2024
…rence length (facebook#46799)

Summary:
X-link: facebook/yoga#1715


Content box impl had a bug where we resolved padding % against the same reference length as the dimensions. Padding should always be against containing block's width. This is also true for width, but not for height, which should be against containing block's height.

This just pipes the width into our box sizing functions.

Changelog: [Internal}

Differential Revision: D63787577
joevilches added a commit to joevilches/react-native that referenced this pull request Oct 3, 2024
…rence length (facebook#46799)

Summary:
X-link: facebook/yoga#1715


Content box impl had a bug where we resolved padding % against the same reference length as the dimensions. Padding should always be against containing block's width. This is also true for width, but not for height, which should be against containing block's height.

This just pipes the width into our box sizing functions.

Changelog: [Internal}

Differential Revision: D63787577
joevilches added a commit to joevilches/react-native that referenced this pull request Oct 3, 2024
…rence length (facebook#46799)

Summary:
X-link: facebook/yoga#1715


Content box impl had a bug where we resolved padding % against the same reference length as the dimensions. Padding should always be against containing block's width. This is also true for width, but not for height, which should be against containing block's height.

This just pipes the width into our box sizing functions.

Changelog: [Internal}

Differential Revision: D63787577
joevilches added a commit to joevilches/yoga that referenced this pull request Oct 3, 2024
…rence length (facebook#1715)

Summary:

X-link: facebook/react-native#46799

Content box impl had a bug where we resolved padding % against the same reference length as the dimensions. Padding should always be against containing block's width. This is also true for width, but not for height, which should be against containing block's height.

This just pipes the width into our box sizing functions.

Changelog: [Internal}

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

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

…rence length (facebook#1715)

Summary:

X-link: facebook/react-native#46799

Content box impl had a bug where we resolved padding % against the same reference length as the dimensions. Padding should always be against containing block's width. This is also true for width, but not for height, which should be against containing block's height.

This just pipes the width into our box sizing functions.

Changelog: [Internal}

Differential Revision: D63787577
joevilches added a commit to joevilches/react-native that referenced this pull request Oct 4, 2024
…wrong reference length (facebook#46799)

Summary:
X-link: facebook/yoga#1715


Content box impl had a bug where we resolved padding % against the same reference length as the dimensions. Padding should always be against containing block's width. This is also true for width, but not for height, which should be against containing block's height.

This just pipes the width into our box sizing functions.

Changelog: [Internal}

Differential Revision: D63787577
joevilches added a commit to joevilches/react-native that referenced this pull request Oct 4, 2024
…rence length (facebook#46799)

Summary:
X-link: facebook/yoga#1715


Content box impl had a bug where we resolved padding % against the same reference length as the dimensions. Padding should always be against containing block's width. This is also true for width, but not for height, which should be against containing block's height.

This just pipes the width into our box sizing functions.

Changelog: [Internal}

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

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

facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Oct 5, 2024
…rence length

Summary:
X-link: facebook/yoga#1715

X-link: facebook/react-native#46799

Content box impl had a bug where we resolved padding % against the same reference length as the dimensions. Padding should always be against containing block's width. This is also true for width, but not for height, which should be against containing block's height.

This just pipes the width into our box sizing functions.

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D63787577

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

This pull request has been merged in e69fcb2.

facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Oct 5, 2024
…rence length (#46799)

Summary:
X-link: facebook/yoga#1715

Pull Request resolved: #46799

Content box impl had a bug where we resolved padding % against the same reference length as the dimensions. Padding should always be against containing block's width. This is also true for width, but not for height, which should be against containing block's height.

This just pipes the width into our box sizing functions.

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D63787577

fbshipit-source-id: e512338770f25b66506cabab5a7cde8f04397ea0
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