--- a/ui/motif/Grid.c Tue Dec 31 16:21:57 2024 +0100 +++ b/ui/motif/Grid.c Tue Dec 31 17:22:16 2024 +0100 @@ -367,6 +367,8 @@ int req_width = 0; int req_height = 0; + //printf("container width: %d\n", (int)w->core.width); + // calculate the minimum size requirements for all columns and rows // we need to run this 2 times: for widgets without colspan/rowspan first // and then again for colspan/rowspan > 1 @@ -491,6 +493,13 @@ if(!w->mywidget.sizerequest) { Dimension actual_width, actual_height; w->mywidget.sizerequest = TRUE; + + //XtWidgetGeometry request; + //request.width = req_width; + //request.request_mode = CWWidth; + //XtWidgetGeometry reply; + //XtGeometryResult result = XtMakeGeometryRequest((Widget)w, &request, &reply); + XtMakeResizeRequest((Widget)w, req_width, req_height, &actual_width, &actual_height); w->mywidget.sizerequest = FALSE; //printf("size request: %d %d\n", (int)actual_width, (int)actual_height);