소스 검색

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.