ui/cocoa/GridLayout.m

changeset 811
1391ba7e533f
parent 810
7b5ba65b246f
child 846
ffa983c223c1
--- 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;

mercurial