mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Justifier->Aligner
This commit is contained in:
@@ -339,7 +339,7 @@ public class DrawTests (ITestOutputHelper _output)
|
||||
Text = "Test",
|
||||
Width = 6,
|
||||
Height = 1,
|
||||
Justification = Justification.Right,
|
||||
TextJustification = Alignment.Right,
|
||||
ColorScheme = Colors.ColorSchemes ["Base"]
|
||||
};
|
||||
|
||||
@@ -350,7 +350,7 @@ public class DrawTests (ITestOutputHelper _output)
|
||||
Y = 1,
|
||||
Width = 1,
|
||||
Height = 6,
|
||||
VerticalJustification = Justification.Bottom,
|
||||
VerticalTextJustification = Alignment.Bottom,
|
||||
ColorScheme = Colors.ColorSchemes ["Base"]
|
||||
};
|
||||
Toplevel top = new ();
|
||||
|
||||
@@ -681,11 +681,11 @@ public class DimAutoTests (ITestOutputHelper output)
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
view.TextFormatter.Justification = Justification.Justified;
|
||||
view.TextFormatter.Justification = Alignment.Justified;
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
view.TextFormatter.VerticalJustification = Justification.Centered;
|
||||
view.TextFormatter.VerticalJustification = Alignment.Centered;
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
@@ -709,11 +709,11 @@ public class DimAutoTests (ITestOutputHelper output)
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
view.Justification = Justification.Justified;
|
||||
view.TextJustification = Alignment.Justified;
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
view.VerticalJustification = Justification.Centered;
|
||||
view.VerticalTextJustification = Alignment.Centered;
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
@@ -738,7 +738,7 @@ public class DimAutoTests (ITestOutputHelper output)
|
||||
Assert.True (view.TextFormatter.AutoSize);
|
||||
Assert.NotEqual (Size.Empty, view.Frame.Size);
|
||||
|
||||
view.Justification = Justification.Justified;
|
||||
view.TextJustification = Alignment.Justified;
|
||||
Assert.True (view.TextFormatter.AutoSize);
|
||||
Assert.NotEqual (Size.Empty, view.Frame.Size);
|
||||
|
||||
@@ -747,7 +747,7 @@ public class DimAutoTests (ITestOutputHelper output)
|
||||
Text = "_1234",
|
||||
Width = Dim.Auto ()
|
||||
};
|
||||
view.VerticalJustification = Justification.Centered;
|
||||
view.VerticalTextJustification = Alignment.Centered;
|
||||
Assert.True (view.TextFormatter.AutoSize);
|
||||
Assert.NotEqual (Size.Empty, view.Frame.Size);
|
||||
|
||||
|
||||
@@ -1811,7 +1811,7 @@ Y
|
||||
Y = 1,
|
||||
Width = width,
|
||||
Height = 1,
|
||||
Justification = Justification.Centered,
|
||||
TextJustification = Alignment.Centered,
|
||||
};
|
||||
|
||||
if (autoSize)
|
||||
@@ -1826,7 +1826,7 @@ Y
|
||||
Y = 2,
|
||||
Width = width,
|
||||
Height = 1,
|
||||
Justification = Justification.Right,
|
||||
TextJustification = Alignment.Right,
|
||||
};
|
||||
if (autoSize)
|
||||
{
|
||||
@@ -1840,7 +1840,7 @@ Y
|
||||
Y = 3,
|
||||
Width = width,
|
||||
Height = 1,
|
||||
Justification = Justification.Justified,
|
||||
TextJustification = Alignment.Justified,
|
||||
};
|
||||
if (autoSize)
|
||||
{
|
||||
@@ -1937,7 +1937,7 @@ Y
|
||||
Width = 1,
|
||||
Height = height,
|
||||
TextDirection = TextDirection.TopBottom_LeftRight,
|
||||
VerticalJustification = Justification.Centered
|
||||
VerticalTextJustification = Alignment.Centered
|
||||
};
|
||||
if (autoSize)
|
||||
{
|
||||
@@ -1952,7 +1952,7 @@ Y
|
||||
Width = 1,
|
||||
Height = height,
|
||||
TextDirection = TextDirection.TopBottom_LeftRight,
|
||||
VerticalJustification = Justification.Bottom
|
||||
VerticalTextJustification = Alignment.Bottom
|
||||
};
|
||||
if (autoSize)
|
||||
{
|
||||
@@ -1967,7 +1967,7 @@ Y
|
||||
Width = 1,
|
||||
Height = height,
|
||||
TextDirection = TextDirection.TopBottom_LeftRight,
|
||||
VerticalJustification = Justification.Justified
|
||||
VerticalTextJustification = Alignment.Justified
|
||||
};
|
||||
if (autoSize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user