From 63f8abfd3be55e54e5df2b7fe252ece45955e618 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 (cherry picked from commit 0a0125ee79e7865e9c8673726f5c29ab83be7fdd) --- src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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; -- cgit