From 483c6ac374f0b10a4abea1f8f63c5dca3f500318 Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Sun, 2 Jul 2023 18:58:17 +0300 Subject: Fix WPanelWithInsets.expandToFit(WWidget) not considering insets --- .../java/io/github/cottonmc/cotton/gui/widget/WPanelWithInsets.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanelWithInsets.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanelWithInsets.java index 77b22be..48792d4 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanelWithInsets.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WPanelWithInsets.java @@ -49,4 +49,9 @@ public abstract class WPanelWithInsets extends WPanel { return this; } + + @Override + protected void expandToFit(WWidget w) { + expandToFit(w, insets); + } } -- cgit