浏览代码

use Rectange with

Tig 1 年之前
父节点
当前提交
63de8ccb80
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.