From 69529fea17c904dc5205657dd04c7ec66a2a3681 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 21 Sep 2021 14:16:23 +0300 Subject: Dropdown menus placed over the button Avoid visibly duplicating the currently selected item, as it can be seen in the dropdown button and the menu. --- src/ui/root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui') diff --git a/src/ui/root.c b/src/ui/root.c index 6a98b261..2e883787 100644 --- a/src/ui/root.c +++ b/src/ui/root.c @@ -312,7 +312,7 @@ static iBool handleRootCommands_(iWidget *root, const char *cmd) { iWidget *menu = findChild_Widget(button, "menu"); iAssert(menu); if (!isVisible_Widget(menu)) { - openMenu_Widget(menu, bottomLeft_Rect(bounds_Widget(button))); + openMenu_Widget(menu, topLeft_Rect(bounds_Widget(button))); } else { closeMenu_Widget(menu); -- cgit v1.2.3