mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 09:47:58 +01:00
Fix compilation errors in tests and disabled border (in tests)
This commit is contained in:
@@ -150,7 +150,7 @@ namespace UnitTests {
|
||||
|
||||
splitContainer.EnsureFocus ();
|
||||
splitContainer.FocusFirst ();
|
||||
splitContainer.Panel1MinSize = 6;
|
||||
splitContainer.Panels [0].MinSize = 6;
|
||||
|
||||
// distance is too small (below 6)
|
||||
splitContainer.SplitterDistance = 2;
|
||||
@@ -237,7 +237,7 @@ namespace UnitTests {
|
||||
splitContainer.Orientation = Terminal.Gui.Graphs.Orientation.Horizontal;
|
||||
splitContainer.EnsureFocus ();
|
||||
splitContainer.FocusFirst ();
|
||||
splitContainer.Panel1MinSize = 1;
|
||||
splitContainer.Panels [0].MinSize = 1;
|
||||
|
||||
// 0 should not be allowed because it brings us below minimum size of Panel1
|
||||
splitContainer.SplitterDistance = 0;
|
||||
@@ -298,8 +298,11 @@ namespace UnitTests {
|
||||
Height = 3,
|
||||
};
|
||||
|
||||
container.Panel1.Add (new Label (new string ('1', 100)));
|
||||
container.Panel2.Add (new Label (new string ('2', 100)));
|
||||
container.Border.DrawMarginFrame = false;
|
||||
container.Border.BorderStyle = BorderStyle.None;
|
||||
|
||||
container.Panels [0].Add (new Label (new string ('1', 100)));
|
||||
container.Panels [1].Add (new Label (new string ('2', 100)));
|
||||
|
||||
Application.Top.Add (container);
|
||||
container.ColorScheme = new ColorScheme ();
|
||||
|
||||
Reference in New Issue
Block a user