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 20, 2025
1 parent 19394e0 commit 3a5cf26
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 3a5cf26

Please sign in to comment.