diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2023-07-02 18:58:17 +0300 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2023-07-02 18:58:17 +0300 |
commit | 483c6ac374f0b10a4abea1f8f63c5dca3f500318 (patch) | |
tree | 71d376740354e22bd01721a114a8983174a31e1b /src/main/java | |
parent | aaa6023e0b843a5adf5f882eb7bd838c7757b9a3 (diff) | |
download | LibGui-483c6ac374f0b10a4abea1f8f63c5dca3f500318.tar.gz LibGui-483c6ac374f0b10a4abea1f8f63c5dca3f500318.tar.bz2 LibGui-483c6ac374f0b10a4abea1f8f63c5dca3f500318.zip |
Fix WPanelWithInsets.expandToFit(WWidget) not considering insets
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WPanelWithInsets.java | 5 |
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); + } } |