From 006f57b0eb718928bde6e548dcadde2ca009577b Mon Sep 17 00:00:00 2001 From: BDisp Date: Mon, 27 Feb 2023 01:18:26 +0000 Subject: [PATCH] Fixes the Clear method. --- Terminal.Gui/Core/View.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Terminal.Gui/Core/View.cs b/Terminal.Gui/Core/View.cs index 85d5bcc96..4fc6279d1 100644 --- a/Terminal.Gui/Core/View.cs +++ b/Terminal.Gui/Core/View.cs @@ -1110,15 +1110,8 @@ namespace Terminal.Gui { /// public void Clear () { - Rect containerBounds = GetContainerBounds (); - Rect viewBounds = Bounds; - if (!containerBounds.IsEmpty) { - viewBounds.Width = Math.Min (viewBounds.Width, containerBounds.Width); - viewBounds.Height = Math.Min (viewBounds.Height, containerBounds.Height); - } - - var h = viewBounds.Height; - var w = viewBounds.Width; + var h = Frame.Height; + var w = Frame.Width; for (var line = 0; line < h; line++) { Move (0, line); for (var col = 0; col < w; col++)