mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
Use new DrawFrame method.
This commit is contained in:
@@ -188,18 +188,8 @@ namespace Terminal.Gui {
|
||||
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 ()) {
|
||||
|
||||
Reference in New Issue
Block a user