diff options
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 04604662..5cab8b4f 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -402,7 +402,7 @@ iWidget *makeMenu_Widget(iWidget *parent, const iMenuItem *items, size_t n) { | |||
402 | setFlags_Widget(menu, | 402 | setFlags_Widget(menu, |
403 | keepOnTop_WidgetFlag | collapse_WidgetFlag | hidden_WidgetFlag | | 403 | keepOnTop_WidgetFlag | collapse_WidgetFlag | hidden_WidgetFlag | |
404 | arrangeVertical_WidgetFlag | arrangeSize_WidgetFlag | | 404 | arrangeVertical_WidgetFlag | arrangeSize_WidgetFlag | |
405 | resizeChildrenToWidestChild_WidgetFlag, | 405 | resizeChildrenToWidestChild_WidgetFlag | overflowScrollable_WidgetFlag, |
406 | iTrue); | 406 | iTrue); |
407 | for (size_t i = 0; i < n; ++i) { | 407 | for (size_t i = 0; i < n; ++i) { |
408 | const iMenuItem *item = &items[i]; | 408 | const iMenuItem *item = &items[i]; |
@@ -740,7 +740,8 @@ iWidget *makeSheet_Widget(const char *id) { | |||
740 | setBackgroundColor_Widget(sheet, uiBackground_ColorId); | 740 | setBackgroundColor_Widget(sheet, uiBackground_ColorId); |
741 | setFlags_Widget(sheet, | 741 | setFlags_Widget(sheet, |
742 | mouseModal_WidgetFlag | keepOnTop_WidgetFlag | arrangeVertical_WidgetFlag | | 742 | mouseModal_WidgetFlag | keepOnTop_WidgetFlag | arrangeVertical_WidgetFlag | |
743 | arrangeSize_WidgetFlag | centerHorizontal_WidgetFlag, | 743 | arrangeSize_WidgetFlag | centerHorizontal_WidgetFlag | |
744 | overflowScrollable_WidgetFlag, | ||
744 | iTrue); | 745 | iTrue); |
745 | return sheet; | 746 | return sheet; |
746 | } | 747 | } |