aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-10-16 03:19:02 +0800
committershedaniel <daniel@shedaniel.me>2021-10-16 03:19:22 +0800
commitaf61e8129e13c6aeacb54aca60198873d071b62d (patch)
treeacceb782e02bddd0cdb04cabc8f62a4fc41b4ad9 /runtime/src/main/java
parentb42449c3aa28982286e0f4c6800c575fef1025f5 (diff)
downloadRoughlyEnoughItems-af61e8129e13c6aeacb54aca60198873d071b62d.tar.gz
RoughlyEnoughItems-af61e8129e13c6aeacb54aca60198873d071b62d.tar.bz2
RoughlyEnoughItems-af61e8129e13c6aeacb54aca60198873d071b62d.zip
Extend height
Diffstat (limited to 'runtime/src/main/java')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/DefaultDisplayViewingScreen.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/DefaultDisplayViewingScreen.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/DefaultDisplayViewingScreen.java
index dc5ef4c4c..55be0672d 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/DefaultDisplayViewingScreen.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/screen/DefaultDisplayViewingScreen.java
@@ -160,7 +160,7 @@ public class DefaultDisplayViewingScreen extends AbstractDisplayViewingScreen {
category -> (category.getDisplayHeight() + 4) * Math.max(1, getRecipesPerPage(largestHeight, category) + 1) + 36, Comparator.naturalOrder()).orElse(66));
int totalDisplayHeight = (getCurrentCategory().getDisplayHeight() + 4) * Math.max(1, getRecipesPerPage(maxHeight, getCurrentCategory()) + 1) + 36;
int guiWidth = Math.max(maxWidthDisplay + 10, 190);
- this.bounds = new Rectangle(width / 2 - guiWidth / 2, height / 2 - maxHeight / 2, guiWidth, Math.min(maxHeight, totalDisplayHeight));
+ this.bounds = new Rectangle(width / 2 - guiWidth / 2, height / 2 - maxHeight / 2, guiWidth, maxHeight);
if (ConfigObject.getInstance().isSubsetsEnabled()) {
this.bounds.setLocation(this.bounds.getX(), this.bounds.getY() + 15);
this.bounds.setSize(this.bounds.getWidth(), this.bounds.getHeight() - 10);