Mon, 17 Nov 2025 08:27:03 +0100
fix tabbar resizing (Motif)
| ui/motif/Grid.c | file | annotate | diff | comparison | revisions | |
| ui/motif/container.c | file | annotate | diff | comparison | revisions |
--- a/ui/motif/Grid.c Mon Nov 17 08:05:47 2025 +0100 +++ b/ui/motif/Grid.c Mon Nov 17 08:27:03 2025 +0100 @@ -638,7 +638,7 @@ height = r.size - w->mywidget.rowspacing; } } - + if(width > 0 && height > 0) { XtConfigureWidget(child, x, y, width, height, child->core.border_width); }
--- a/ui/motif/container.c Mon Nov 17 08:05:47 2025 +0100 +++ b/ui/motif/container.c Mon Nov 17 08:27:03 2025 +0100 @@ -334,9 +334,10 @@ if(numbuttons == 0) { return; } + width--; int button_width = width / numbuttons; int x = 0; - + CxIterator i = cxListIterator(tabview->tabs); cx_foreach(UiTab *, tab, i) { if(i.index + 1 == numbuttons) {