From d4f02237ef7176668def36d8dcc1723a7c8e7393 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Tue, 14 May 2024 14:38:47 +0200 Subject: [PATCH] must have all borders (and equal colours) to be full border --- haxe/ui/styles/Style.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;