From 11acbaaf3a6eca6bebab286b32a08a8f8da2a03f Mon Sep 17 00:00:00 2001 From: yugecin Date: Fri, 3 Feb 2017 16:27:06 +0100 Subject: [PATCH] fix dropdowns vertical position in optionsmenu --- src/yugecin/opsudance/ui/OptionsOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yugecin/opsudance/ui/OptionsOverlay.java b/src/yugecin/opsudance/ui/OptionsOverlay.java index 2c49ecef..63d3b87d 100644 --- a/src/yugecin/opsudance/ui/OptionsOverlay.java +++ b/src/yugecin/opsudance/ui/OptionsOverlay.java @@ -223,7 +223,7 @@ public class OptionsOverlay extends OverlayOpsuState { menu.setChevronRightColor(COL_BG); menu.setHighlightColor(COL_COMBOBOX_HOVER); menu.setTextColor(COL_WHITE); - dropdownMenuPaddingY = (optionHeight - menu.getHeight()); // TODO why isn't this /2 ? + dropdownMenuPaddingY = (optionHeight - menu.getHeight()) / 2; dropdownMenus.put(option, menu); } }