Merge pull request #660 from BDisp/view-redraw

Fixes #659 View.Redraw clipping issue.
This commit is contained in:
Charlie Kindel
2020-06-09 14:57:32 -06:00
committed by GitHub

View File

@@ -984,15 +984,10 @@ namespace Terminal.Gui {
view.LayoutSubviews ();
Application.CurrentView = view;
// Clip the sub-view
var savedClip = view.ClipToBounds ();
// Draw the subview
// Use the view's bounds (view-relative; Location will always be (0,0) because
view.Redraw (view.Bounds);
// Undo the clip
Driver.Clip = savedClip;
}
view.NeedDisplay = Rect.Empty;
view.childNeedsDisplay = false;