Skip to content

Commit be913e3

Browse files
committed
Removed unnecessary window placement assignment to fix window position shifting due to incorrect workspace coordinate usage
1 parent f739a62 commit be913e3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Windows/Avalonia.Win32/WindowImpl.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -608,12 +608,6 @@ public void Resize(Size value, WindowResizeReason reason)
608608
return;
609609
}
610610
}
611-
else
612-
{
613-
var position = Position;
614-
windowPlacement.NormalPosition.left = position.X;
615-
windowPlacement.NormalPosition.top = position.Y;
616-
}
617611

618612
windowPlacement.NormalPosition.right = windowPlacement.NormalPosition.left + windowWidth;
619613
windowPlacement.NormalPosition.bottom = windowPlacement.NormalPosition.top + windowHeight;

0 commit comments

Comments
 (0)