Explorar el Código

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

BDisp hace 4 años
padre
commit
01c07ddc9e
Se han modificado 1 ficheros con 2 adiciones y 6 borrados
  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 ();
 			}
 		}