TextFormater.AutoSize fixes

This commit is contained in:
Tig
2024-04-27 13:48:23 -07:00
parent 3e87d5e786
commit 214ffb1633
4 changed files with 47 additions and 10 deletions

View File

@@ -1750,10 +1750,16 @@ Y
view.Width = 12;
view.Height = 1;
// Assert.Equal (new Size (12, 1), view.TextFormatter.Size);
view.TextFormatter.Size = new (12, 1);
win.LayoutSubviews ();
Assert.Equal (new Size (12, 1), view.TextFormatter.Size);
Assert.Equal (new Rectangle (0, 0, 12, 1), view.Frame);
top.Clear ();
view.Draw ();
expected = @" HelloWorlds";
TestHelpers.AssertDriverContentsWithFrameAre (expected, _output);
Application.Refresh ();
// TextDirection.TopBottom_LeftRight - Height of 1 and Width of 12 means