Browse Source

Only resize if WindowState is Normal.

Steven Kirk 2 years ago
parent
commit
16afcecb99
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Windows/Avalonia.Win32/WindowImpl.cs

+ 1 - 1
src/Windows/Avalonia.Win32/WindowImpl.cs

@@ -567,7 +567,7 @@ namespace Avalonia.Win32
 
 
         public void Resize(Size value, PlatformResizeReason reason)
         public void Resize(Size value, PlatformResizeReason reason)
         {
         {
-            if (WindowState is WindowState.Maximized or WindowState.FullScreen)
+            if (WindowState != WindowState.Normal)
                 return;
                 return;
 
 
             int requestedClientWidth = (int)(value.Width * RenderScaling);
             int requestedClientWidth = (int)(value.Width * RenderScaling);