浏览代码

Reference Bounds in TabView to avoid redrawing issue with repainting

tznind 2 年之前
父节点
当前提交
b94041e02e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Terminal.Gui/Views/TabView.cs

+ 2 - 2
Terminal.Gui/Views/TabView.cs

@@ -194,8 +194,8 @@ namespace Terminal.Gui {
 				int spaceAtBottom = Math.Max (0, GetTabHeight (false) - 1);
 				int spaceAtBottom = Math.Max (0, GetTabHeight (false) - 1);
 				int startAtY = Math.Max (0, GetTabHeight (true) - 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 ()) {
 			if (Tabs.Any ()) {