From 2057cb47d52842e8eea1d5755ee3d4157dce986a Mon Sep 17 00:00:00 2001 From: Tig Date: Mon, 11 Mar 2024 12:12:35 -0800 Subject: [PATCH] Simplified FrameToScreen --- Terminal.Gui/View/Layout/ViewLayout.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Terminal.Gui/View/Layout/ViewLayout.cs b/Terminal.Gui/View/Layout/ViewLayout.cs index 68f1ce6bc..064637794 100644 --- a/Terminal.Gui/View/Layout/ViewLayout.cs +++ b/Terminal.Gui/View/Layout/ViewLayout.cs @@ -102,8 +102,10 @@ public partial class View } Point boundsOffset = super.GetBoundsOffset (); - ret.X += super.Frame.X + boundsOffset.X; - ret.Y += super.Frame.Y + boundsOffset.Y; + boundsOffset.Offset(super.Frame.X, super.Frame.Y); + //ret.Location.Offset(super.Frame.X + boundsOffset.X, super.Frame.Y + boundsOffset.Y); + ret.X += boundsOffset.X; + ret.Y += boundsOffset.Y; super = super.SuperView; }