aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2020-04-26 00:47:40 +0300
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2020-04-26 00:47:40 +0300
commit0a0125ee79e7865e9c8673726f5c29ab83be7fdd (patch)
tree016ff80d1c4729adce232e019ff461dbf2c5460a /src/main/java
parentcf26e57d6846474702c0a86b0d199667a233ffc0 (diff)
downloadLibGui-0a0125ee79e7865e9c8673726f5c29ab83be7fdd.tar.gz
LibGui-0a0125ee79e7865e9c8673726f5c29ab83be7fdd.tar.bz2
LibGui-0a0125ee79e7865e9c8673726f5c29ab83be7fdd.zip
Fix WTexts being fixed-size
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java
index f71f53b..2052379 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java
@@ -46,6 +46,11 @@ public class WText extends WWidget {
wrappingScheduled = true;
}
+ @Override
+ public boolean canResize() {
+ return true;
+ }
+
@Environment(EnvType.CLIENT)
private void wrapLines() {
TextRenderer font = MinecraftClient.getInstance().textRenderer;