Browse Source

workaround for maximize window restore not working.

Dan Walmsley 7 years ago
parent
commit
1d3c9ccde7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Avalonia.Native.OSX/window.mm

+ 3 - 0
src/Avalonia.Native.OSX/window.mm

@@ -963,6 +963,9 @@ private:
         {
             switch (state) {
                 case Maximized:
+                    lastPositionSet.X = 0;
+                    lastPositionSet.Y = 0;
+                    
                     if([Window isMiniaturized])
                     {
                         [Window deminiaturize:Window];