fix non-centered searchfield considering gui space (#429)

This commit is contained in:
ghostflyby authored and GitHub committed 2023-10-14 13:02:11 +02:00
1 parent 4766d90db0
commit e88348aabf
1 file changed
+2 -1
@@ -328,7 +328,8 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
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;