Browse Source

use Rectange with

Tig 1 year ago
parent
commit
63de8ccb80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/View/Adornment/Adornment.cs

+ 1 - 1
Terminal.Gui/View/Adornment/Adornment.cs

@@ -36,7 +36,7 @@ public class Adornment : View
     /// </summary>
     public override Rectangle Bounds
     {
-        get => new (Point.Empty, Frame.Size);
+        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.