Merge pull request #1017 from BDisp/window-frame

Fixes #1016. Window is drawing its frame over the menu.
This commit is contained in:
Charlie Kindel
2020-11-19 16:55:05 -07:00
committed by GitHub

View File

@@ -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);
}
}
}
}
//