Fix: Transparent border rendered as black

Related to https://github.com/NativeScript/NativeScript/issues/3113
This commit is contained in:
Rossen Hristov
2016-11-21 11:48:36 +02:00
parent 79aa8ee932
commit 23a3a70a82

View File

@@ -367,9 +367,6 @@ public class BorderDrawable extends ColorDrawable {
int borderColor = this.getUniformBorderColor();
// iOS and browsers use black when no color is specified.
if (borderColor == Color.TRANSPARENT){
borderColor = Color.BLACK;
}
if (borderWidth > 0) {
float halfBorderWidth = borderWidth / 2.0f;
RectF middleBoundsF = new RectF(bounds.left + halfBorderWidth, bounds.top + halfBorderWidth, bounds.right - halfBorderWidth, bounds.bottom - halfBorderWidth);