diff --git a/src/Eto.Mac/Forms/Controls/MacLabel.cs b/src/Eto.Mac/Forms/Controls/MacLabel.cs index 2d1b43f5a5..99600d66ab 100644 --- a/src/Eto.Mac/Forms/Controls/MacLabel.cs +++ b/src/Eto.Mac/Forms/Controls/MacLabel.cs @@ -148,6 +148,10 @@ public abstract class MacLabel : MacView { + // note: this actually failed only when the form was the initial window, as it calculated its size before it was even shown. + form.ClientSize = new Size(200, 200); + + var layout = new PixelLayout(); + layout.Add(new Label { Text = "Hello world.", BackgroundColor = Colors.Yellow, TextColor = Colors.Black }, 50, 50); + layout.Add(new Label { Text = "Bonjour monde.", BackgroundColor = Colors.LightGreen, TextColor = Colors.Black }, 20, 20); + form.Content = layout; + return layout; + }); + } } }