Skip to content

Commit 64a78ed

Browse files
sduddikuntafacebook-github-bot-4
authored and
facebook-github-bot-4
committed
Fix bug in Android elevation implementation
Summary: If border radius is not set or is zero, then elevation will not work properly. This bug seems to have been introduced when the style in facebook#4180 was modified slightly to produce commit b65f1f2. Closes facebook#4555 Reviewed By: svcscm Differential Revision: D2741203 Pulled By: mkonicek fb-gh-sync-id: f4ee9ccdfc64374d58824a6e988409ac2b7532a4
1 parent 2aa3e0d commit 64a78ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public void getOutline(Outline outline) {
138138
: 0;
139139
outline.setRoundRect(getBounds(), mBorderRadius + extraRadiusFromBorderWidth);
140140
} else {
141-
super.getOutline(outline);
141+
outline.setRect(getBounds());
142142
}
143143
}
144144

0 commit comments

Comments
 (0)