Skip to content

Commit

Permalink
Merge pull request #5971 from AvaloniaUI/fixes/osx-shadow-invalidation
Browse files Browse the repository at this point in the history
force osx shadow invalidation on programatic resize.
  • Loading branch information
danwalmsley committed Jun 4, 2021
1 parent a3dfb23 commit 16f2143
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions native/Avalonia.Native/src/OSX/window.mm
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ virtual HRESULT Resize(double x, double y) override
BaseEvents->Resized(AvnSize{x,y});
}

[StandardContainer setFrameSize:NSSize{x,y}];
[Window setContentSize:NSSize{x, y}];

return S_OK;
Expand Down Expand Up @@ -2245,6 +2246,7 @@ virtual HRESULT Resize(double x, double y) override
{
if (Window != nullptr)
{
[StandardContainer setFrameSize:NSSize{x,y}];
[Window setContentSize:NSSize{x, y}];

[Window setFrameTopLeftPoint:ToNSPoint(ConvertPointY(lastPositionSet))];
Expand Down

0 comments on commit 16f2143

Please sign in to comment.