Skip to content

Commit

Permalink
Use new DrawFrame method.
Browse files Browse the repository at this point in the history
  • Loading branch information
BDisp committed Nov 12, 2023
1 parent 6ec588c commit 69a7f17
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Terminal.Gui/Views/TabView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,8 @@ public override void OnDrawContent (Rect contentArea)
int spaceAtBottom = Math.Max (0, GetTabHeight (false) - 1);
int startAtY = Math.Max (0, GetTabHeight (true) - 1);

var vts = ViewToScreen (new Rect (0, startAtY, Bounds.Width,
Math.Max (Bounds.Height - spaceAtBottom - startAtY, 0)));
LineCanvas.AddLine (new Point (vts.X, vts.Y), vts.Width,
Orientation.Horizontal, LineStyle.Single);
LineCanvas.AddLine (new Point (vts.Right - 1, vts.Y), vts.Height,
Orientation.Vertical, LineStyle.Single);
LineCanvas.AddLine (new Point (vts.X, vts.Bottom - 1), vts.Width,
Orientation.Horizontal, LineStyle.Single);
LineCanvas.AddLine (new Point (vts.X, vts.Y), vts.Height,
Orientation.Vertical, LineStyle.Single);

OnRenderLineCanvas ();
DrawFrame (new Rect (0, startAtY, Bounds.Width,
Math.Max (Bounds.Height - spaceAtBottom - startAtY, 0)), LineStyle.Single);
}

if (Tabs.Any ()) {
Expand Down

0 comments on commit 69a7f17

Please sign in to comment.