Reamed Bounds -> ViewPort to see how it feels

This commit is contained in:
Tig
2024-03-14 07:30:27 -08:00
parent a5b1d6836e
commit f6ff36968e
78 changed files with 610 additions and 610 deletions

View File

@@ -30,7 +30,7 @@ public class TreeViewTests
tree.BeginInit ();
tree.EndInit ();
tree.Bounds = new Rectangle (0, 0, 10, 10);
tree.Viewport = new Rectangle (0, 0, 10, 10);
InitFakeDriver ();
@@ -60,7 +60,7 @@ public class TreeViewTests
tree.EndInit ();
// control only allows 1 row to be viewed at once
tree.Bounds = new Rectangle (0, 0, 20, 1);
tree.Viewport = new Rectangle (0, 0, 20, 1);
InitFakeDriver ();
@@ -234,7 +234,7 @@ public class TreeViewTests
tree.EndInit ();
// Make tree bounds 1 in height so that EnsureVisible always requires updating scroll offset
tree.Bounds = new Rectangle (0, 0, 50, 1);
tree.Viewport = new Rectangle (0, 0, 50, 1);
Assert.Null (tree.SelectedObject);
Assert.Equal (0, tree.ScrollOffsetVertical);