1
0
Эх сурвалжийг харах

Moved SetWindowStartupLocation() to end of Show() function

Sannan Khan 7 жил өмнө
parent
commit
2a14f4d6a5

+ 1 - 1
src/Avalonia.Controls/Window.cs

@@ -373,7 +373,6 @@ namespace Avalonia.Controls
             AddWindow(this);
 
             EnsureInitialized();
-            SetWindowStartupLocation();
             IsVisible = true;
             LayoutManager.Instance.ExecuteInitialLayoutPass(this);
 
@@ -382,6 +381,7 @@ namespace Avalonia.Controls
                 PlatformImpl?.Show();
                 Renderer?.Start();
             }
+            SetWindowStartupLocation();
         }
 
         /// <summary>