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:
Siddu Duddikunta 2015-12-09 15:49:36 -08:00 committed by facebook-github-bot-4
parent 2aa3e0dd1a
commit 64a78ed74b

View File

@ -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());
} }
} }