Pārlūkot izejas kodu

Merge pull request #1017 from BDisp/window-frame

Fixes #1016. Window is drawing its frame over the menu.
Charlie Kindel 4 gadi atpakaļ
vecāks
revīzija
a7dfeced76
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      Terminal.Gui/Core/Window.cs

+ 10 - 0
Terminal.Gui/Core/Window.cs

@@ -193,6 +193,16 @@ namespace Terminal.Gui {
 				Driver.SetAttribute (ColorScheme.HotNormal);
 			Driver.DrawWindowTitle (scrRect, Title, padding, padding, padding, padding);
 			Driver.SetAttribute (ColorScheme.Normal);
+
+			// 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);
+					}
+				}
+			}
 		}
 
 		//