ui/motif/container.c

changeset 63
46a42f0c4f93
parent 62
70d2aee84432
child 64
6ef2c7f73a30
--- a/ui/motif/container.c	Sun Jan 04 22:12:07 2015 +0100
+++ b/ui/motif/container.c	Mon Jan 05 11:49:46 2015 +0100
@@ -247,7 +247,6 @@
             if(widget_height > rheight) {
                 rheight = widget_height;
             }
-            rowdim = ucx_list_append(rowdim, (void*)(intptr_t)rheight);
             
             // get the maximum width in this column
             if(widget_width > coldim[i]) {
@@ -263,6 +262,7 @@
                 numcol = i;
             }
         }
+        rowdim = ucx_list_append(rowdim, (void*)(intptr_t)rheight);
         sumh += rheight;
     }
     
@@ -284,7 +284,13 @@
         int i=0;
         UCX_FOREACH(elm, row->data) {
             Widget w = elm->data;
-            XtVaSetValues(w, XmNx, x, XmNy, y, NULL);
+            XtVaSetValues(
+                    w,
+                    XmNx, x,
+                    XmNy, y,
+                    XmNwidth, coldim[i],
+                    XmNheight, rowdim->data,
+                    NULL);
             
             x += coldim[i];
             i++;

mercurial