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:02 +0800
commit1c9de26fa9aec111fd4b3953832eab5316fbf45f (patch)
treecefeb6aeefa811ba23eab83b1ad9e9ba8dcebfb7 /runtime/src/main/java
parent4f78d37a3df6c4ce0c1dc70c5aab9884d6da498c (diff)
downloadRoughlyEnoughItems-1c9de26fa9aec111fd4b3953832eab5316fbf45f.tar.gz
RoughlyEnoughItems-1c9de26fa9aec111fd4b3953832eab5316fbf45f.tar.bz2
RoughlyEnoughItems-1c9de26fa9aec111fd4b3953832eab5316fbf45f.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 7c71052e1..8f378a848 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);