diff --git a/UICatalog/Scenarios/SplitContainerNesting.cs b/UICatalog/Scenarios/SplitContainerNesting.cs index c7faab8f3..60e6500b2 100644 --- a/UICatalog/Scenarios/SplitContainerNesting.cs +++ b/UICatalog/Scenarios/SplitContainerNesting.cs @@ -140,6 +140,7 @@ namespace UICatalog.Scenarios { return new Label { Width = Dim.Fill (), Height = 1, + AutoSize = false, Text = number.ToString ().Repeat (1000), CanFocus = true, }; diff --git a/UnitTests/SplitContainerTests.cs b/UnitTests/SplitContainerTests.cs index 808d0d31e..f9f03873c 100644 --- a/UnitTests/SplitContainerTests.cs +++ b/UnitTests/SplitContainerTests.cs @@ -583,10 +583,10 @@ namespace UnitTests { container.IntegratedBorder = withBorder ? BorderStyle.Single : BorderStyle.None; - container.Panel1.Add (new Label (new string ('1', 100))); - container.Panel1.Add (new Label (new string ('1', 100)) { Y = 1}); - container.Panel2.Add (new Label (new string ('2', 100))); - container.Panel2.Add (new Label (new string ('2', 100)) { Y = 1}); + container.Panel1.Add (new Label (new string ('1', 100)) { Width = Dim.Fill(), Height = 1, AutoSize = false}); + container.Panel1.Add (new Label (new string ('1', 100)) { Width = Dim.Fill (), Height = 1, AutoSize = false,Y = 1}); + container.Panel2.Add (new Label (new string ('2', 100)) { Width = Dim.Fill (), Height = 1, AutoSize = false }); + container.Panel2.Add (new Label (new string ('2', 100)) { Width = Dim.Fill (), Height = 1, AutoSize = false,Y = 1}); container.Panel1MinSize = 0; container.Panel2MinSize = 0;