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 elevation with border-radius set #48982

Closed
wants to merge 1 commit into from

Conversation

jorge-cab
Copy link
Contributor

@jorge-cab jorge-cab commented Jan 27, 2025

Summary: We were missing a conversion to px on the getOutline() function of CompositeBackgroundDrawable which led to incorrect elevation prop rendering

Reviewed By: NickGerleman

Differential Revision: D68724947

#48874

@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 Jan 27, 2025
@facebook-github-bot
Copy link
Contributor

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

jorge-cab added a commit to jorge-cab/react-native that referenced this pull request Jan 27, 2025
Summary:

We were missing a conversion to px on the `getOutline()` function of `CompositeBackgroundDrawable` which led to incorrect elevation prop rendering

Reviewed By: NickGerleman

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

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

Summary:

We were missing a conversion to px on the `getOutline()` function of `CompositeBackgroundDrawable` which led to incorrect elevation prop rendering

Reviewed By: NickGerleman

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f7d78f8.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 27, 2025
robhogan pushed a commit that referenced this pull request Feb 11, 2025
Summary:
Pull Request resolved: #48982

We were missing a conversion to px on the `getOutline()` function of `CompositeBackgroundDrawable` which led to incorrect elevation prop rendering

Changelog: [Android][Fixed] - Elevation prop on android has incorrect border-radius

Reviewed By: NickGerleman

Differential Revision: D68724947

fbshipit-source-id: b3a7a4919bfd7c60fac7c3d6e3ba760e3f74d190
polovi added a commit to polovi/react-native that referenced this pull request Mar 6, 2025
cortinico added a commit that referenced this pull request Mar 7, 2025
* Fix elevation with border-radius set (#48982)

* Update packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/CompositeBackgroundDrawable.kt

---------

Co-authored-by: Nicola Corti <corti.nico@gmail.com>
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.

2 participants