ソースを参照

Fixes #1056. Window doesn't redraw his SuperView properly.

BDisp 4 年 前
コミット
01c07ddc9e
1 ファイル変更2 行追加6 行削除
  1. 2 6
      Terminal.Gui/Core/Window.cs

+ 2 - 6
Terminal.Gui/Core/Window.cs

@@ -196,12 +196,8 @@ namespace Terminal.Gui {
 
 			// Checks if there are any SuperView view which intersect with this window.
 			if (SuperView != null) {
-				foreach (var view in SuperView.Subviews) {
-					if (view != this && view.Frame.IntersectsWith (Bounds)) {
-						view.SetNeedsLayout ();
-						view.SetNeedsDisplay (view.Bounds);
-					}
-				}
+				SuperView.SetNeedsLayout ();
+				SuperView.SetNeedsDisplay ();
 			}
 		}