Browse Source

Merge pull request #5971 from AvaloniaUI/fixes/osx-shadow-invalidation

force osx shadow invalidation on programatic resize.
Dan Walmsley 4 years ago
parent
commit
a7dc3fbcc6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      native/Avalonia.Native/src/OSX/window.mm

+ 2 - 0
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))];