diff -r 3012ec57d84a -r 4d5aa85bc5ed ui/motif/container.c --- a/ui/motif/container.c Tue Nov 18 16:47:48 2025 +0100 +++ b/ui/motif/container.c Tue Nov 18 17:26:15 2025 +0100 @@ -251,7 +251,7 @@ Widget parent = ui_container_prepare(ctn, &layout, xargs, &n); char *name = args->name ? (char*)args->name : "frame"; - Widget frame = XmCreateFrame(parent, name, xargs, 6); + Widget frame = XmCreateFrame(parent, name, xargs, n); XtManageChild(frame); ui_container_add(ctn, frame); @@ -271,7 +271,8 @@ UiContainerArgs sub_args = { .spacing = args->spacing, .columnspacing = args->columnspacing, - .rowspacing = args->rowspacing + .rowspacing = args->rowspacing, + .margin = args->padding }; switch(args->subcontainer) { default: break;