diff --git a/haxe/ui/styles/Style.hx b/haxe/ui/styles/Style.hx index 4a56b6d14..ad57ffdea 100644 --- a/haxe/ui/styles/Style.hx +++ b/haxe/ui/styles/Style.hx @@ -169,7 +169,7 @@ class Style { var borderColoursEqual = (borderLeftColor == borderRightColor && borderLeftColor == borderTopColor && borderLeftColor == borderBottomColor); if (!hasLeftBorder && !hasRightBorder && !hasTopBorder && !hasBottomBorder) { t = StyleBorderType.None; - } else if (borderColoursEqual) { + } else if (hasLeftBorder && hasRightBorder && hasTopBorder && hasBottomBorder && borderColoursEqual) { t = StyleBorderType.Full; } return t;