Browse Source

Add SplitRight back in again for Notepad (still broken)

tznind 2 years ago
parent
commit
1a00e49361
1 changed files with 2 additions and 3 deletions
  1. 2 3
      UICatalog/Scenarios/Notepad.cs

+ 2 - 3
UICatalog/Scenarios/Notepad.cs

@@ -122,15 +122,14 @@ namespace UICatalog.Scenarios {
 		}
 		}
 		private void SplitRight (TabView sender, OpenedFile tab)
 		private void SplitRight (TabView sender, OpenedFile tab)
 		{
 		{
-			/*
 			var split = (SplitView)sender.SuperView.SuperView;
 			var split = (SplitView)sender.SuperView.SuperView;
 
 
 			// TODO: Implement
 			// TODO: Implement
-			split.TrySplitView1 (out var sub);
+			split.TrySplitView (0, out var sub);
 			sub.Orientation = Terminal.Gui.Graphs.Orientation.Vertical;
 			sub.Orientation = Terminal.Gui.Graphs.Orientation.Vertical;
 			var newTabView = CreateNewTabView ();
 			var newTabView = CreateNewTabView ();
 			tab.CloneTo (newTabView);
 			tab.CloneTo (newTabView);
-			sub.View2.Add (newTabView);*/
+			sub.Tiles.ElementAt (1).View.Add (newTabView);
 		}
 		}
 
 
 		private TabView CreateNewTabView ()
 		private TabView CreateNewTabView ()