Explorar el Código

Using LayoutSubviews to fix the size height hiding first character.

BDisp hace 4 años
padre
commit
138a14746d
Se han modificado 2 ficheros con 6 adiciones y 4 borrados
  1. 3 2
      UICatalog/Scenarios/AllViewsTester.cs
  2. 3 2
      UnitTests/ScenarioTests.cs

+ 3 - 2
UICatalog/Scenarios/AllViewsTester.cs

@@ -228,8 +228,9 @@ namespace UICatalog {
 
 			Top.Add (_leftPane, _settingsPane, _hostPane);
 
-			// This is not needed because ListView always run the SelectedItemChanged event at first time
-			//_curView = CreateClass (_viewClasses.First ().Value);
+			Top.LayoutSubviews ();
+
+			_curView = CreateClass (_viewClasses.First ().Value);
 		}
 
 		void DimPosChanged (View view)

+ 3 - 2
UnitTests/ScenarioTests.cs

@@ -363,8 +363,9 @@ namespace Terminal.Gui {
 
 			Top.Add (_leftPane, _settingsPane, _hostPane);
 
-			// This is not needed because ListView always run the SelectedItemChanged event at first time
-			//_curView = CreateClass (_viewClasses.First ().Value);
+			Top.LayoutSubviews ();
+
+			_curView = CreateClass (_viewClasses.First ().Value);
 
 			int iterations = 0;