Ver Fonte

Added // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize

Tig há 1 ano atrás
pai
commit
d27b0b6212

+ 2 - 2
Terminal.Gui/Views/LineView.cs

@@ -14,14 +14,14 @@ public class LineView : View
         switch (orientation)
         {
             case Orientation.Horizontal:
-                Height = 1;
+                Height = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
                 Width = Dim.Fill ();
                 LineRune = Glyphs.HLine;
 
                 break;
             case Orientation.Vertical:
                 Height = Dim.Fill ();
-                Width = 1;
+                Width = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
                 LineRune = Glyphs.VLine;
 
                 break;

+ 1 - 1
Terminal.Gui/Views/Menu/MenuBar.cs

@@ -256,7 +256,7 @@ public class MenuBar : View
         X = 0;
         Y = 0;
         Width = Dim.Fill ();
-        Height = 1;
+        Height = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
         Menus = new MenuBarItem [] { };
 
         //CanFocus = true;

+ 2 - 2
Terminal.Gui/Views/SpinnerView/SpinnerView.cs

@@ -28,8 +28,8 @@ public class SpinnerView : View
     /// <summary>Creates a new instance of the <see cref="SpinnerView"/> class.</summary>
     public SpinnerView ()
     {
-        Width = 1;
-        Height = 1;
+        Width = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
+        Height = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
         _delay = DEFAULT_DELAY;
         _bounce = false;
         SpinReverse = false;

+ 1 - 1
Terminal.Gui/Views/StatusBar.cs

@@ -93,7 +93,7 @@ public class StatusBar : View
         X = 0;
         Y = Pos.AnchorEnd (1);
         Width = Dim.Fill ();
-        Height = 1;
+        Height = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
         AddCommand (Command.Accept, InvokeItem);
     }
 

+ 1 - 1
Terminal.Gui/Views/TabView.cs

@@ -564,7 +564,7 @@ public class TabView : View
             _host = host;
 
             CanFocus = true;
-            Height = 1;
+            Height = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
             Width = Dim.Fill ();
 
             _rightScrollIndicator = new View

+ 1 - 1
Terminal.Gui/Views/TextField.cs

@@ -1864,7 +1864,7 @@ public class TextField : View
         // Don't let height > 1
         if (Frame.Height > 1)
         {
-            Height = 1;
+            Height = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
         }
     }
 }

+ 1 - 1
Terminal.Gui/Views/TextValidateField.cs

@@ -397,7 +397,7 @@ namespace Terminal.Gui
         /// </summary>
         public TextValidateField ()
         {
-            Height = 1;
+            Height = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
             CanFocus = true;
 
             // Things this view knows how to do

+ 1 - 1
Terminal.Gui/Views/TextView.cs

@@ -2703,7 +2703,7 @@ public class TextView : View
                 //if (LayoutStyle == LayoutStyle.Computed) {
                 //	LayoutStyle = LayoutStyle.Absolute;
                 //}
-                Height = 1;
+                Height = 1; // BUGBUG: Views should avoid setting Height as doing so implies Frame.Size == ContentSize
 
                 //LayoutStyle = prevLayoutStyle;
                 if (!IsInitialized)