Implement Dynamic Handler Height (#792)

This commit is contained in:
slprime authored and GitHub committed 2025-11-05 19:00:09 +02:00
1 parent a186f69444
commit 667c8cb5b6
9 files changed
+429 -319

No files matched your search

@@ -56,10 +56,10 @@ public class NEIRecipeWidget extends Widget {
}
public void update() {
this.w = Math.max(166, this.handlerInfo.getWidth());
if (this.showAsWidget || !this.handlerInfo.expandVertically()) {
if (this.showAsWidget || !this.handlerInfo.getUseCustomScroll()) {
final int recipeHeight = this.handlerRef.handler.getRecipeHeight(this.handlerRef.recipeIndex);
this.w = Math.max(166, this.handlerInfo.getWidth());
this.h = recipeHeight > 0 ? recipeHeight : this.handlerInfo.getHeight();
this.h += this.handlerInfo.getYShift();
}