diff --git a/Terminal.Gui/Views/Menu/Menu.cs b/Terminal.Gui/Views/Menu/Menu.cs index a7d9f91df7..c2ee48ade4 100644 --- a/Terminal.Gui/Views/Menu/Menu.cs +++ b/Terminal.Gui/Views/Menu/Menu.cs @@ -790,7 +790,8 @@ public override void OnDrawContent (Rectangle viewport) if (item is null && BorderStyle != LineStyle.None) { - Move (-1, i); + var s = ViewportToScreen (new (-1, i, 0, 0)); + Driver.Move (s.X, s.Y); Driver.AddRune (Glyphs.LeftTee); } else if (Frame.X < Driver.Cols) @@ -837,7 +838,8 @@ public override void OnDrawContent (Rectangle viewport) { if (BorderStyle != LineStyle.None && SuperView?.Frame.Right - Frame.X > Frame.Width) { - Move (Frame.Width - 2, i); + var s = ViewportToScreen (new (Frame.Width - 2, i, 0, 0)); + Driver.Move (s.X, s.Y); Driver.AddRune (Glyphs.RightTee); } diff --git a/Terminal.Gui/Views/Menu/MenuBar.cs b/Terminal.Gui/Views/Menu/MenuBar.cs index 46573a457e..7e141d92f0 100644 --- a/Terminal.Gui/Views/Menu/MenuBar.cs +++ b/Terminal.Gui/Views/Menu/MenuBar.cs @@ -471,13 +471,9 @@ internal Menu openCurrentMenu /// public override void OnDrawContent (Rectangle viewport) { - Move (0, 0); Driver.SetAttribute (GetNormalColor ()); - for (var i = 0; i < Frame.Width; i++) - { - Driver.AddRune ((Rune)' '); - } + Clear (); Move (1, 0); var pos = 0;