Browse Source

in parameter

Tig 1 year ago
parent
commit
8b0c2486c6

+ 0 - 3
Terminal.Gui/View/Adornment/Adornment.cs

@@ -37,9 +37,6 @@ public class Adornment : View
     public override Rectangle Bounds
     {
         get => Frame with { Location = Point.Empty };
-
-        // QUESTION: So why even have a setter then?
-        // ANSWER: Because this is an override of a base class property, and the base class has a setter.
         set => throw new InvalidOperationException ("It makes no sense to set Bounds of a Thickness.");
     }
 

+ 1 - 1
Terminal.Gui/View/Layout/ViewLayout.cs

@@ -484,7 +484,7 @@ public partial class View
     public event EventHandler Initialized;
 
     /// <summary>Converts a <see cref="Bounds"/>-relative rectangle to a screen-relative rectangle.</summary>
-    public Rectangle BoundsToScreen (Rectangle bounds)
+    public Rectangle BoundsToScreen (in Rectangle bounds)
     {
         // Translate bounds to Frame (our SuperView's Bounds-relative coordinates)
         Point boundsOffset = GetBoundsOffset ();