mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fixed Horizontal FormatAndGetSize Fill issue; Vertical is still broken
This commit is contained in:
@@ -810,13 +810,15 @@ w ";
|
||||
Application.Begin (top);
|
||||
((FakeDriver)Application.Driver).SetBufferSize (width + 2, 6);
|
||||
|
||||
// frame.Width is width + border wide (20 + 2) and 6 high
|
||||
|
||||
if (autoSize)
|
||||
{
|
||||
Size expectedSize = new (11, 1);
|
||||
Assert.Equal (expectedSize, lblLeft.TextFormatter.Size);
|
||||
Assert.Equal (expectedSize, lblCenter.TextFormatter.Size);
|
||||
Assert.Equal (expectedSize, lblRight.TextFormatter.Size);
|
||||
// Assert.Equal (expectedSize, lblJust.TextFormatter.Size);
|
||||
Assert.Equal (expectedSize, lblJust.TextFormatter.Size);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -824,7 +826,7 @@ w ";
|
||||
Assert.Equal (expectedSize, lblLeft.TextFormatter.Size);
|
||||
Assert.Equal (expectedSize, lblCenter.TextFormatter.Size);
|
||||
Assert.Equal (expectedSize, lblRight.TextFormatter.Size);
|
||||
//Assert.Equal (expectedSize, lblJust.TextFormatter.Size);
|
||||
Assert.Equal (expectedSize, lblJust.TextFormatter.Size);
|
||||
}
|
||||
|
||||
Assert.Equal (new (0, 0, width + 2, 6), frame.Frame);
|
||||
@@ -943,7 +945,7 @@ w ";
|
||||
Assert.Equal (new (1, 11), lblLeft.TextFormatter.Size);
|
||||
Assert.Equal (new (1, 11), lblCenter.TextFormatter.Size);
|
||||
Assert.Equal (new (1, 11), lblRight.TextFormatter.Size);
|
||||
// Assert.Equal (new (1, 11), lblJust.TextFormatter.Size);
|
||||
Assert.Equal (new (1, 11), lblJust.TextFormatter.Size);
|
||||
Assert.Equal (new (0, 0, 9, height + 2), frame.Frame);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user