Skip to content

Commit

Permalink
fix non-centered searchfield considering gui space (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostflyby authored Oct 14, 2023
1 parent 4766d90 commit e88348a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/codechicken/nei/LayoutManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ public static void layout(GuiContainer gui) {

if (isBookmarkPanelHidden()) visiblity.showBookmarkPanel = false;

if (gui.height - gui.ySize <= 40) visiblity.showSearchSection = false;
if (gui.height - gui.ySize <= 40 && NEIClientConfig.isSearchWidgetCentered())
visiblity.showSearchSection = false;

if (visiblity.showBookmarkPanel || gui.guiTop <= 20) visiblity.showSubsetDropdown = false;

Expand Down

0 comments on commit e88348a

Please sign in to comment.