mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 00:46:39 +01:00
Updated almosta all tests to not use AutoSize
This commit is contained in:
@@ -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) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user