diff options
author | isXander <xander@isxander.dev> | 2024-04-23 18:27:48 +0100 |
---|---|---|
committer | isXander <xander@isxander.dev> | 2024-04-23 18:27:48 +0100 |
commit | 525a145e80475892c2cd34d882f636360971224c (patch) | |
tree | 5dbd7e4e5be68ea99872605e1fa77c60e8dad4f5 /src/main/java/dev/isxander/yacl3/gui | |
parent | e1d95961881b72f40d8c12d2cdcaeee4d9e6b31b (diff) | |
download | YetAnotherConfigLib-525a145e80475892c2cd34d882f636360971224c.tar.gz YetAnotherConfigLib-525a145e80475892c2cd34d882f636360971224c.tar.bz2 YetAnotherConfigLib-525a145e80475892c2cd34d882f636360971224c.zip |
Fix publishing
Diffstat (limited to 'src/main/java/dev/isxander/yacl3/gui')
-rw-r--r-- | src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java b/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java index b183dc8..e5aca58 100644 --- a/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java +++ b/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java @@ -176,7 +176,7 @@ public class ElementListWidgetExt<E extends ElementListWidgetExt.Entry<E>> exten this.setScrollAmount(this.getScrollAmount() + j); } - int k = this.getBottom() - i - entry.getItemHeight() * 2; + int k = this.getY() + this.getHeight() - i - entry.getItemHeight() * 2; if (k < 0) { this.setScrollAmount(this.getScrollAmount() - k); } |