Lagrange [dev]

Fixed a menu getting stuck wrapping text too narrowly

=> 1aae692cfb6ea4ddd5d29908edb2382cdd99021b

diff --git a/src/ui/util.c b/src/ui/util.c
index 3283ae91..9b9e9a44 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -824,7 +824,7 @@ static void closeSubmenus_(iWidget *menu, iRoot *root) {
                     }
                 }
                 if (!submenu) {
-                    submenu = findChild_Widget(root->widget, subId);                    
+                    submenu = findChild_Widget(root->widget, subId);
                 }
                 iAssert(submenu);
                 remove_Periodic(periodic_App(), submenu);
@@ -1006,7 +1006,10 @@ void makeMenuItems_Widget(iWidget *menu, const iMenuItem *items, size_t n) {
                     itemFlags);
             deinit_String(&labelStr);
             setWrap_LabelWidget(label, isInfo);
-            if (!isInfo) {
+            if (isInfo) {
+                setMinSize_Widget(as_Widget(label), init_I2(40 * gap_UI, 0));
+            }
+            else {
                 haveIcons |= checkIcon_LabelWidget(label);
             }
             if (isIcon) {
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/dev/cdiff/1aae692cfb6ea4ddd5d29908edb2382cdd99021b
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
30.375967 milliseconds
Gemini-to-HTML Time
0.233283 milliseconds

This content has been proxied by September (ba2dc).