summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-30 16:39:24 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-30 16:39:24 +0200
commit66bce4868f4fcd25867b0f0b0a9b9a88bb89f16d (patch)
tree0f551f302777a4f3a704a96b22ec47e34c2bbf2d /src/ui
parent2e9f8b247472bc6be3963ee7aad223f895085185 (diff)
Mobile: Fixed scrolling of long popup menus
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index 0e792fa3..695e43aa 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -1036,7 +1036,8 @@ void openMenuFlags_Widget(iWidget *d, iInt2 windowCoord, int menuOpenFlags) {
1036 setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iFalse); 1036 setFlags_Widget(findChild_Widget(d, "menu.cancel"), disabled_WidgetFlag, iFalse);
1037 arrange_Widget(d); /* need to know the height */ 1037 arrange_Widget(d); /* need to know the height */
1038 iBool allowOverflow = iFalse; 1038 iBool allowOverflow = iFalse;
1039 /* A vertical offset determined by a possible selected label in the menu. */ { 1039 /* A vertical offset determined by a possible selected label in the menu. */
1040 if (deviceType_App() == desktop_AppDeviceType) {
1040 iConstForEach(ObjectList, child, children_Widget(d)) { 1041 iConstForEach(ObjectList, child, children_Widget(d)) {
1041 const iWidget *item = constAs_Widget(child.object); 1042 const iWidget *item = constAs_Widget(child.object);
1042 if (flags_Widget(item) & selected_WidgetFlag) { 1043 if (flags_Widget(item) & selected_WidgetFlag) {