mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix: Transparent border rendered as black
Related to https://github.com/NativeScript/NativeScript/issues/3113
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user