Skip to content

Commit

Permalink
Merge pull request #8239 from AvaloniaUI/fixes/osx-shadow-invalidation
Browse files Browse the repository at this point in the history
OSX Shadow invalidation when window sized
  • Loading branch information
danwalmsley authored Jun 1, 2022
2 parents 68c915e + f9b8f20 commit e907c91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions native/Avalonia.Native/src/OSX/WindowBaseImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@

if(Window != nullptr) {
[Window setContentSize:lastSize];
[Window invalidateShadow];
}
}
@finally {
Expand Down
2 changes: 2 additions & 0 deletions native/Avalonia.Native/src/OSX/WindowImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@
[Window orderFront:nullptr];
}

[Window invalidateShadow];

for(auto iterator = _children.begin(); iterator != _children.end(); iterator++)
{
(*iterator)->BringToFront();
Expand Down

0 comments on commit e907c91

Please sign in to comment.