Skip to content

Commit

Permalink
Removed unnecessary window placement assignment to fix window positio…
Browse files Browse the repository at this point in the history
…n shifting due to incorrect workspace coordinate usage
  • Loading branch information
codecat committed Jan 21, 2025
1 parent f739a62 commit be913e3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Windows/Avalonia.Win32/WindowImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -608,12 +608,6 @@ public void Resize(Size value, WindowResizeReason reason)
return;
}
}
else
{
var position = Position;
windowPlacement.NormalPosition.left = position.X;
windowPlacement.NormalPosition.top = position.Y;
}

windowPlacement.NormalPosition.right = windowPlacement.NormalPosition.left + windowWidth;
windowPlacement.NormalPosition.bottom = windowPlacement.NormalPosition.top + windowHeight;
Expand Down

0 comments on commit be913e3

Please sign in to comment.