diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-05-20 23:35:31 +0300 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-05-20 23:35:31 +0300 |
commit | 5cf70b3c69f663679b45d47800d298ae5eb1a11c (patch) | |
tree | b835aa40b3bdae42cd984c02f685d9e2ba1a6454 /src | |
parent | 27944bd21fbccd966b547bbda89d8cf9741f3687 (diff) | |
download | LibGui-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WLabel.java | 2 |
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) { |