Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Gui/src/main/java/mezz/jei/gui/recipes/RecipesGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public class RecipesGui extends Screen implements IRecipesGui, IRecipeFocusSourc
private static final int smallButtonWidth = 13;
private static final int smallButtonHeight = 13;
private static final int minGuiWidth = 198;
private static final int minGuiHeight = 198;

private final IInternalKeyMappings keyBindings;
private final BookmarkList bookmarks;
Expand Down Expand Up @@ -175,12 +176,12 @@ public void init() {
super.init();

final int xSize = minGuiWidth;
int ySize;
int ySize = Math.max(this.height, minGuiHeight);
IClientConfig clientConfig = Internal.getJeiClientConfigs().getClientConfig();
if (clientConfig.isCenterSearchBarEnabled()) {
ySize = this.height - 76;
ySize -= 76;
} else {
ySize = this.height - 58;
ySize -= 58;
}
int extraSpace = 0;
final int maxHeight = clientConfig.getMaxRecipeGuiHeight();
Expand Down