Skip to content

Commit

Permalink
must have all borders (and equal colours) to be full border
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed May 14, 2024
1 parent aa0c374 commit d4f0223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haxe/ui/styles/Style.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d4f0223

Please sign in to comment.