Browse Source
Merge pull request #8239 from AvaloniaUI/fixes/osx-shadow-invalidation
OSX Shadow invalidation when window sized
pull/8248/head
Dan Walmsley
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
0 deletions
-
native/Avalonia.Native/src/OSX/WindowBaseImpl.mm
-
native/Avalonia.Native/src/OSX/WindowImpl.mm
|
|
|
@ -294,6 +294,7 @@ HRESULT WindowBaseImpl::Resize(double x, double y, AvnPlatformResizeReason reaso |
|
|
|
|
|
|
|
if(Window != nullptr) { |
|
|
|
[Window setContentSize:lastSize]; |
|
|
|
[Window invalidateShadow]; |
|
|
|
} |
|
|
|
} |
|
|
|
@finally { |
|
|
|
|
|
|
|
@ -139,6 +139,8 @@ void WindowImpl::BringToFront() |
|
|
|
[Window orderFront:nullptr]; |
|
|
|
} |
|
|
|
|
|
|
|
[Window invalidateShadow]; |
|
|
|
|
|
|
|
for(auto iterator = _children.begin(); iterator != _children.end(); iterator++) |
|
|
|
{ |
|
|
|
(*iterator)->BringToFront(); |
|
|
|
|