mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 12:34:17 +00:00
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/react-native#4180 was modified slightly to produce commit b65f1f223488b52963f80a67bb41956103263d27. Closes https://github.com/facebook/react-native/pull/4555 Reviewed By: svcscm Differential Revision: D2741203 Pulled By: mkonicek fb-gh-sync-id: f4ee9ccdfc64374d58824a6e988409ac2b7532a4
This commit is contained in:
parent
2aa3e0dd1a
commit
64a78ed74b
@ -138,7 +138,7 @@ import com.facebook.csslayout.Spacing;
|
|||||||
: 0;
|
: 0;
|
||||||
outline.setRoundRect(getBounds(), mBorderRadius + extraRadiusFromBorderWidth);
|
outline.setRoundRect(getBounds(), mBorderRadius + extraRadiusFromBorderWidth);
|
||||||
} else {
|
} else {
|
||||||
super.getOutline(outline);
|
outline.setRect(getBounds());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user