From 0a0125ee79e7865e9c8673726f5c29ab83be7fdd Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Sun, 26 Apr 2020 00:47:40 +0300 Subject: Fix WTexts being fixed-size --- src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit