From 8ef1b2b271235fb88ba0957a30a4699610b24bc9 Mon Sep 17 00:00:00 2001 From: StavWasPlayZ Date: Wed, 19 Jul 2023 19:57:51 +0300 Subject: [PATCH] Fix potentially overflowing options screen --- .../options/instrument/AbstractInstrumentOptionsScreen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/cstav/genshinstrument/client/gui/screens/options/instrument/AbstractInstrumentOptionsScreen.java b/src/main/java/com/cstav/genshinstrument/client/gui/screens/options/instrument/AbstractInstrumentOptionsScreen.java index 915626f2..45e0d2d8 100644 --- a/src/main/java/com/cstav/genshinstrument/client/gui/screens/options/instrument/AbstractInstrumentOptionsScreen.java +++ b/src/main/java/com/cstav/genshinstrument/client/gui/screens/options/instrument/AbstractInstrumentOptionsScreen.java @@ -130,9 +130,9 @@ protected void init() { grid.arrangeElements(); FrameLayout.alignInRectangle(grid, 0, 0, width, height, 0.5f, 0); - grid.visitWidgets(this::addRenderableWidget); - grid.setY(40); + + grid.visitWidgets(this::addRenderableWidget); final Button doneBtn = Button.builder(CommonComponents.GUI_DONE, (btn) -> onClose())