aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WPanelWithInsets.java5
1 files changed, 5 insertions, 0 deletions
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);
+ }
}