Browse Source

minor scenario tweaks

Charlie Kindel 5 years ago
parent
commit
5236a4913e

+ 2 - 1
UICatalog/Scenarios/Editor.cs

@@ -6,12 +6,13 @@ namespace UICatalog {
 	[ScenarioMetadata (Name: "Editor", Description: "A Terminal.Gui Text Editor via TextView")]
 	[ScenarioCategory ("Controls")]
 	[ScenarioCategory ("Text")]
+	[ScenarioCategory ("Dialogs")]
+	[ScenarioCategory ("TopLevel")]
 	class Editor : Scenario {
 		private string _fileName = "demo.txt";
 		private TextView _textView;
 		private bool _saved = true;
 
-
 		public override void Init (Toplevel top)
 		{
 			base.Init (top);

+ 3 - 0
UICatalog/Scenarios/HexEditor.cs

@@ -7,6 +7,8 @@ namespace UICatalog {
 	[ScenarioMetadata (Name: "HexEditor", Description: "A Terminal.Gui binary (hex) editor via HexView")]
 	[ScenarioCategory ("Controls")]
 	[ScenarioCategory ("Text")]
+	[ScenarioCategory ("Dialogs")]
+	[ScenarioCategory ("TopLevel")]
 	class HexEditor : Scenario {
 		private string _fileName = "demo.bin";
 		private HexView _hexView;
@@ -16,6 +18,7 @@ namespace UICatalog {
 		{
 			Win.Title = this.GetName() + "-" + _fileName ?? "Untitled";
 			Win.Y = 1;
+			Win.Height = Dim.Fill (1);
 			Top.LayoutSubviews ();
 
 			var menu = new MenuBar (new MenuBarItem [] {

+ 1 - 0
UICatalog/Scenarios/WindowExperiment.cs

@@ -5,6 +5,7 @@ using Terminal.Gui;
 namespace UICatalog {
 	[ScenarioMetadata (Name: "Windows & FrameViews", Description: "Shows Windows, sub-Windows, FrameViews, and how TAB doesn't work right (#434, #522)")]
 	[ScenarioCategory ("Views")]
+	[ScenarioCategory ("Layout")]
 	class WindowExperiment : Scenario {
 		public override void Init (Toplevel top)
 		{