--- a/ui/cocoa/GridLayout.m Tue Oct 07 14:59:11 2025 +0200 +++ b/ui/cocoa/GridLayout.m Tue Oct 07 15:42:18 2025 +0200 @@ -32,9 +32,8 @@ @implementation GridLayout -@synthesize label=_label; @synthesize uilayout=_uilayout; -@synthesize newline=_newline; +@synthesize container=_container; - (GridLayout*)init { self = [super init]; @@ -84,10 +83,6 @@ GridDef *col = &cols[x]; GridDef *row = &rows[y]; - if(elm->margin.left + elm->margin.right > 0) { - printf(""); // break - } - NSSize size = elm->view.intrinsicContentSize; NSSize size2 = elm->view.fittingSize; if(size.width == NSViewNoIntrinsicMetric) { @@ -321,10 +316,10 @@ _preferredSize.width = -1; _preferredSize.height = -1; - if(_newline) { + if(self.container->newline) { _y++; _x = 0; - _newline = FALSE; + self.container->newline = FALSE; } GridElm elm;