From 6d0d2abaf5f02fccd57b39c69088a8f7f7d1e04d Mon Sep 17 00:00:00 2001 From: Tig Date: Fri, 8 Mar 2024 23:59:50 -0700 Subject: [PATCH] updated Line --- Terminal.Gui/Views/Line.cs | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/Terminal.Gui/Views/Line.cs b/Terminal.Gui/Views/Line.cs index 6e1a5a06a..d919c0f9f 100644 --- a/Terminal.Gui/Views/Line.cs +++ b/Terminal.Gui/Views/Line.cs @@ -13,29 +13,13 @@ public class Line : View public Orientation Orientation { get; set; } /// - public override bool OnDrawAdornments () + public override void OnDrawContent (Rectangle contentArea) { - Rectangle screenBounds = BoundsToScreen (Bounds); - LineCanvas lc; - - lc = SuperView?.LineCanvas; - - lc.AddLine ( - screenBounds.Location, + LineCanvas.AddLine ( + BoundsToScreen (contentArea).Location, Orientation == Orientation.Horizontal ? Frame.Width : Frame.Height, Orientation, BorderStyle ); - - return true; } - - //public override void OnDrawContentComplete (Rect contentArea) - //{ - // var screenBounds = ViewToScreen (Frame); - - //} - - /// - public override void OnDrawContent (Rectangle contentArea) { OnDrawAdornments (); } }