diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index fe5e5393..cfb2b230 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 (windowCoord.y < rootSize.y - lineHeight_Text(uiNormal_FontSize) * 3) { | ||
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) { |