From d00a486d3bdf6105f8ca8af1034c384058b8c832 Mon Sep 17 00:00:00 2001 From: isXander Date: Sat, 3 Jun 2023 23:10:03 +0100 Subject: fix use of scissor in StringControllerElement --- .../main/java/dev/isxander/yacl/gui/ElementListWidgetExt.java | 2 ++ .../yacl/gui/controllers/string/StringControllerElement.java | 4 ++-- common/src/main/java/dev/isxander/yacl/gui/utils/GuiUtils.java | 9 --------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/common/src/main/java/dev/isxander/yacl/gui/ElementListWidgetExt.java b/common/src/main/java/dev/isxander/yacl/gui/ElementListWidgetExt.java index 8fdf2ee..6b3ab1c 100644 --- a/common/src/main/java/dev/isxander/yacl/gui/ElementListWidgetExt.java +++ b/common/src/main/java/dev/isxander/yacl/gui/ElementListWidgetExt.java @@ -67,6 +67,8 @@ public class ElementListWidgetExt> exten this.y0 = rectangle.top(); this.x1 = rectangle.right(); this.y1 = rectangle.bottom(); + this.width = rectangle.width(); + this.height = rectangle.height(); } /** diff --git a/common/src/main/java/dev/isxander/yacl/gui/controllers/string/StringControllerElement.java b/common/src/main/java/dev/isxander/yacl/gui/controllers/string/StringControllerElement.java index 08c3275..7dc81fe 100644 --- a/common/src/main/java/dev/isxander/yacl/gui/controllers/string/StringControllerElement.java +++ b/common/src/main/java/dev/isxander/yacl/gui/controllers/string/StringControllerElement.java @@ -51,7 +51,7 @@ public class StringControllerElement extends ControllerWidget