mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixed TabView
This commit is contained in:
@@ -188,6 +188,8 @@ namespace Terminal.Gui.ViewsTests {
|
||||
Application.Top.Add (sv);
|
||||
Application.Begin (Application.Top);
|
||||
|
||||
Assert.Equal (new Rect (0, 0, 10, 10), sv.Bounds);
|
||||
|
||||
Assert.False (sv.AutoHideScrollBars);
|
||||
Assert.True (sv.ShowHorizontalScrollIndicator);
|
||||
Assert.True (sv.ShowVerticalScrollIndicator);
|
||||
@@ -206,7 +208,9 @@ namespace Terminal.Gui.ViewsTests {
|
||||
", output);
|
||||
|
||||
sv.ShowHorizontalScrollIndicator = false;
|
||||
Assert.Equal (new Rect (0, 0, 10, 10), sv.Bounds);
|
||||
sv.ShowVerticalScrollIndicator = true;
|
||||
Assert.Equal (new Rect (0, 0, 10, 10), sv.Bounds);
|
||||
|
||||
Assert.False (sv.AutoHideScrollBars);
|
||||
Assert.False (sv.ShowHorizontalScrollIndicator);
|
||||
@@ -220,6 +224,7 @@ namespace Terminal.Gui.ViewsTests {
|
||||
│
|
||||
│
|
||||
│
|
||||
│
|
||||
┴
|
||||
▼
|
||||
", output);
|
||||
@@ -241,7 +246,7 @@ namespace Terminal.Gui.ViewsTests {
|
||||
|
||||
|
||||
|
||||
◄├─────┤►
|
||||
◄├──────┤►
|
||||
", output);
|
||||
|
||||
sv.ShowHorizontalScrollIndicator = false;
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Terminal.Gui.ViewsTests {
|
||||
tv.BeginInit ();
|
||||
tv.EndInit ();
|
||||
tv.ColorScheme = new ColorScheme ();
|
||||
tv.AddTab (tab1 = new Tab ("Tab1", new TextField ("hi")), false);
|
||||
tv.AddTab (tab1 = new Tab ("Tab1", new TextField ("hi") { Width = 2 }), false);
|
||||
tv.AddTab (tab2 = new Tab ("Tab2", new Label ("hi2")), false);
|
||||
return tv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user