Browse Source
Merge pull request #5971 from AvaloniaUI/fixes/osx-shadow-invalidation
force osx shadow invalidation on programatic resize.
pull/5997/head
Dan Walmsley
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
native/Avalonia.Native/src/OSX/window.mm
|
|
|
@ -263,6 +263,7 @@ public: |
|
|
|
BaseEvents->Resized(AvnSize{x,y}); |
|
|
|
} |
|
|
|
|
|
|
|
[StandardContainer setFrameSize:NSSize{x,y}]; |
|
|
|
[Window setContentSize:NSSize{x, y}]; |
|
|
|
|
|
|
|
return S_OK; |
|
|
|
@ -2245,6 +2246,7 @@ protected: |
|
|
|
{ |
|
|
|
if (Window != nullptr) |
|
|
|
{ |
|
|
|
[StandardContainer setFrameSize:NSSize{x,y}]; |
|
|
|
[Window setContentSize:NSSize{x, y}]; |
|
|
|
|
|
|
|
[Window setFrameTopLeftPoint:ToNSPoint(ConvertPointY(lastPositionSet))]; |
|
|
|
|