From fb317622ca9fbccc607a98942ffa8a4ffc250257 Mon Sep 17 00:00:00 2001 From: BDisp Date: Sun, 12 Jul 2020 11:56:57 +0100 Subject: [PATCH] Fixing a bug. --- Terminal.Gui/Core/Toplevel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Core/Toplevel.cs b/Terminal.Gui/Core/Toplevel.cs index d30a186de..882cf1f65 100644 --- a/Terminal.Gui/Core/Toplevel.cs +++ b/Terminal.Gui/Core/Toplevel.cs @@ -276,7 +276,7 @@ namespace Terminal.Gui { s = ((Toplevel)SuperView).StatusBar != null; } if (SuperView == null || SuperView is Toplevel) { - l = s ? Frame.Height - 1 : Frame.Height; + l = s ? Driver.Rows - 1 : Driver.Rows; } else { l = s ? SuperView.Frame.Height - 1 : SuperView.Frame.Height; }