Skip to content

Commit

Permalink
invalidate shadow on resize, and ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
danwalmsley committed Jun 1, 2022
1 parent 68c915e commit f9b8f20
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 f9b8f20

Please sign in to comment.