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:48:37 +0300
commit63f8abfd3be55e54e5df2b7fe252ece45955e618 (patch)
treed904f34f452f26f0f0d4c98681f01da266bba4cf /src/main/java
parent35174a9af664d5eedc8d89a82be120c4ac6119fa (diff)
downloadLibGui-63f8abfd3be55e54e5df2b7fe252ece45955e618.tar.gz
LibGui-63f8abfd3be55e54e5df2b7fe252ece45955e618.tar.bz2
LibGui-63f8abfd3be55e54e5df2b7fe252ece45955e618.zip
Fix WTexts being fixed-size
(cherry picked from commit 0a0125ee79e7865e9c8673726f5c29ab83be7fdd)
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 ab9333b..f63ffc6 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
@@ -45,6 +45,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;