cocoa: adding window content invalidation on hidding of window

git-svn-id: trunk@61704 -
This commit is contained in:
dmitry 2019-08-16 13:54:15 +00:00
parent 91bd946fad
commit 1437ddef5a

View File

@ -1108,6 +1108,9 @@ begin
w := TCocoaWindowContent(AWinControl.Handle).lclOwnWindow;
if Assigned(w) and Assigned(w.parentWindow) then
w.parentWindow.removeChildWindow(w);
// if the same control needs to be shown again, it will be redrawn
// without this invalidation, Cocoa might should the previously cached contents
TCocoaWindowContent(AWinControl.Handle).documentView.setNeedsDisplay_(true);
end;
TCocoaWSWinControl.ShowHide(AWinControl);
end;