mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
TextFormater.AutoSize fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user