--- a/ui/motif/Grid.c Sat Jan 04 16:38:48 2025 +0100 +++ b/ui/motif/Grid.c Sun Jan 05 10:10:47 2025 +0100 @@ -208,8 +208,17 @@ grid.vfill), XmRImmediate, (XtPointer) 0 + }, + { + gridMinWidth, + gridMinWidth, + XmRDimension, + sizeof (Dimension), + XtOffsetOf( GridConstraintRec, + grid.min_width), + XmRImmediate, + (XtPointer) 0 } - }; //*/ @@ -415,6 +424,9 @@ if(constraints->grid.pref_height == 0) { constraints->grid.pref_height = child->core.height; } + if(constraints->grid.pref_width < constraints->grid.min_width) { + constraints->grid.pref_width = constraints->grid.min_width; + } if(constraints->grid.colspan > span_max || constraints->grid.rowspan > span_max) { continue;