From 63de8ccb80145bce5cbb2d33299a82eab6f6d809 Mon Sep 17 00:00:00 2001 From: Tig Date: Wed, 6 Mar 2024 21:40:07 -0700 Subject: [PATCH] use Rectange with --- Terminal.Gui/View/Adornment/Adornment.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/View/Adornment/Adornment.cs b/Terminal.Gui/View/Adornment/Adornment.cs index 904588cf4..41e0a9adc 100644 --- a/Terminal.Gui/View/Adornment/Adornment.cs +++ b/Terminal.Gui/View/Adornment/Adornment.cs @@ -36,7 +36,7 @@ public class Adornment : View /// 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.