ui/gtk/container.c

changeset 732
3920f803ef19
parent 731
8487d11b9491
child 765
ee08f7859b78
--- a/ui/gtk/container.c	Tue Aug 26 15:07:20 2025 +0200
+++ b/ui/gtk/container.c	Tue Aug 26 19:21:17 2025 +0200
@@ -201,26 +201,28 @@
             vexpand = TRUE;
         }
         if(grid->def_vfill) {
-            vexpand = TRUE;
+            vfill = TRUE;
         }
     }
     
     UiBool fill = ct->layout.fill;
     if(ct->layout.hexpand) {
         hexpand = TRUE;
-        hfill = TRUE;
-    } else if(ct->layout.hfill) {
+    }
+    if(ct->layout.hfill) {
         hfill = TRUE;
     }
     if(ct->layout.vexpand) {
         vexpand = TRUE;
-        vfill = TRUE;
-    } else if(ct->layout.vfill) {
+    }
+    if(ct->layout.vfill) {
         vfill = TRUE;
     }
     if(fill) {
         hfill = TRUE;
         vfill = TRUE;
+        hexpand = TRUE;
+        vexpand = TRUE;
     }
     
     if(!hfill) {

mercurial