aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-05-20 23:35:31 +0300
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-05-20 23:35:31 +0300
commit5cf70b3c69f663679b45d47800d298ae5eb1a11c (patch)
treeb835aa40b3bdae42cd984c02f685d9e2ba1a6454
parent27944bd21fbccd966b547bbda89d8cf9741f3687 (diff)
downloadLibGui-5cf70b3c69f663679b45d47800d298ae5eb1a11c.tar.gz
LibGui-5cf70b3c69f663679b45d47800d298ae5eb1a11c.tar.bz2
LibGui-5cf70b3c69f663679b45d47800d298ae5eb1a11c.zip
Make WLabel properly resizeable
Now the height is un-hardcoded with a minimum of 8 pixels.
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WLabel.java2
1 files changed, 1 insertions, 1 deletions
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) {