Skip to content

Commit

Permalink
Fix item list items overlapping search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Jan 1, 2016
1 parent 0d5be82 commit 463be23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/mezz/jei/gui/ItemListOverlay.java
Expand Up @@ -98,10 +98,6 @@ public boolean initGui(@Nonnull GuiContainer guiContainer) {
return false;
}

final int rows = getRows();
final int xSize = columns * itemStackWidth;
final int xEmptySpace = screenWidth - guiLeft - guiXSize - xSize;

String next = ">";
String back = "<";

Expand All @@ -110,6 +106,10 @@ public boolean initGui(@Nonnull GuiContainer guiContainer) {
final int backButtonWidth = buttonPaddingX + fontRenderer.getStringWidth(back);
buttonHeight = buttonPaddingY + fontRenderer.FONT_HEIGHT;

final int rows = getRows();
final int xSize = columns * itemStackWidth;
final int xEmptySpace = screenWidth - guiLeft - guiXSize - xSize;

final int leftEdge = guiLeft + guiXSize + (xEmptySpace / 2);
final int rightEdge = leftEdge + xSize;

Expand Down

0 comments on commit 463be23

Please sign in to comment.