From 5cf70b3c69f663679b45d47800d298ae5eb1a11c Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Wed, 20 May 2020 23:35:31 +0300 Subject: Make WLabel properly resizeable Now the height is un-hardcoded with a minimum of 8 pixels. --- src/main/java/io/github/cottonmc/cotton/gui/widget/WLabel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabel.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabel.java index 663c58a..09f24e7 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabel.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WLabel.java @@ -116,7 +116,7 @@ public class WLabel extends WWidget { @Override public void setSize(int x, int y) { - super.setSize(x, 20); + super.setSize(x, Math.max(8, y)); } public WLabel setDarkmodeColor(int color) { -- cgit