From b94041e02e2278248ca237cd148745f5fd5342f7 Mon Sep 17 00:00:00 2001 From: tznind Date: Fri, 27 Jan 2023 00:30:21 +0000 Subject: [PATCH] Reference Bounds in TabView to avoid redrawing issue with repainting --- Terminal.Gui/Views/TabView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Terminal.Gui/Views/TabView.cs b/Terminal.Gui/Views/TabView.cs index 8d60a3b0d..375a7ed70 100644 --- a/Terminal.Gui/Views/TabView.cs +++ b/Terminal.Gui/Views/TabView.cs @@ -194,8 +194,8 @@ namespace Terminal.Gui { int spaceAtBottom = Math.Max (0, GetTabHeight (false) - 1); int startAtY = Math.Max (0, GetTabHeight (true) - 1); - DrawFrame (new Rect (0, startAtY, bounds.Width, - Math.Max (bounds.Height - spaceAtBottom - startAtY, 0)), 0, true); + DrawFrame (new Rect (0, startAtY, Bounds.Width, + Math.Max (Bounds.Height - spaceAtBottom - startAtY, 0)), 0, true); } if (Tabs.Any ()) {