Browse Source

use Rectange with

Tig 1 năm trước cách đây
mục cha
commit
63de8ccb80
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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.