ui/cocoa/BoxContainer.m

changeset 799
f8ff8df41713
parent 785
b943e3d618f0
child 811
1391ba7e533f
--- a/ui/cocoa/BoxContainer.m	Sat Oct 04 18:33:58 2025 +0200
+++ b/ui/cocoa/BoxContainer.m	Sun Oct 05 12:34:42 2025 +0200
@@ -13,7 +13,7 @@
     return self;
 }
 
-- (void) addView:(NSView*)view {
+- (void) addView:(NSView*)view  margin:(NSEdgeInsets)margin {
     UiLayout layout = self.uilayout;
     if(_orientation == NSUserInterfaceLayoutOrientationVertical) {
         layout.hexpand = TRUE;
@@ -24,7 +24,7 @@
         self.newline = FALSE;
     }
     self.uilayout = layout;
-    [super addView:view];
+    [super addView:view margin:margin];
     if(_orientation == NSUserInterfaceLayoutOrientationVertical) {
         self.newline = TRUE;
     }

mercurial