Updated almosta all tests to not use AutoSize

This commit is contained in:
Tig
2024-05-03 14:01:02 -06:00
parent bd57b1df11
commit 65b36a9268
16 changed files with 83 additions and 128 deletions

View File

@@ -392,10 +392,9 @@ public class ScrollViewTests
var view = new View
{
Width = size.Width,
Height = size.Height,
ColorScheme = new ColorScheme { Normal = new Attribute (Color.Blue, Color.Yellow) },
AutoSize = true,
Width = Dim.Auto (Dim.DimAutoStyle.Text),
Height = Dim.Auto (Dim.DimAutoStyle.Text),
Text = text
};
sv.Add (view);
@@ -519,14 +518,13 @@ public class ScrollViewTests
view.Add (
new Label
{
AutoSize = false, Width = Dim.Fill (), Height = 1, Text = rule.Repeat (size.Width / rule.Length)
Width = Dim.Fill (), Height = 1, Text = rule.Repeat (size.Width / rule.Length)
}
);
view.Add (
new Label
{
AutoSize = false,
Height = Dim.Fill (),
Width = 1,
Text = rule.Repeat (size.Height / rule.Length),
@@ -1083,7 +1081,7 @@ public class ScrollViewTests
Height = height;
//labelFill = new Label { AutoSize = false, X = Pos.Center (), Y = Pos.Center (), Width = Dim.Fill (), Height = Dim.Fill (), Visible = false };
labelFill = new Label { AutoSize = false, Width = Dim.Fill (), Height = Dim.Fill (), Visible = false };
labelFill = new Label { Width = Dim.Fill (), Height = Dim.Fill (), Visible = false };
labelFill.LayoutComplete += (s, e) =>
{