summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-21 14:16:23 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-21 14:16:23 +0300
commit69529fea17c904dc5205657dd04c7ec66a2a3681 (patch)
tree362c06068a3b0227d608ad194e553b6e68b913ab /src/ui
parent2ed9d1bbd3b92b8d39a368963c3fd5d0fbcdc974 (diff)
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.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/root.c2
1 files changed, 1 insertions, 1 deletions
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) {
312 iWidget *menu = findChild_Widget(button, "menu"); 312 iWidget *menu = findChild_Widget(button, "menu");
313 iAssert(menu); 313 iAssert(menu);
314 if (!isVisible_Widget(menu)) { 314 if (!isVisible_Widget(menu)) {
315 openMenu_Widget(menu, bottomLeft_Rect(bounds_Widget(button))); 315 openMenu_Widget(menu, topLeft_Rect(bounds_Widget(button)));
316 } 316 }
317 else { 317 else {
318 closeMenu_Widget(menu); 318 closeMenu_Widget(menu);