AvaloniaUI/Avalonia

Window moves around when I resize it

Opened this issue · 3 comments

Describe the bug

When I resize an Avalonia Window it moves around and doesn't resize properly (it does resize, but due to the movement the sizing jumps as well)

To Reproduce

  1. start with the Avalonia Control Gallery app (Windows Desktop). No code changes.
  2. Resize it.

Here is a video of the behavior: https://tsterpublic.blob.core.windows.net/public/Avalonia-WIndow-Resize-Bug.mp4

Expected behavior

Behave like any other Window.

Avalonia version

11.2.2

OS

Windows

Additional context

Windows 10

C:\repos\Avalonia [master]> git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
C:\repos\Avalonia [master]> git rev-parse HEAD
4c428d073d28afc1196aff7c60168db62754ef05
C:\repos\Avalonia [master]> git log -n 1
commit 4c428d073d28afc1196aff7c60168db62754ef05 (HEAD -> master, origin/master, origin/HEAD)
Author: Benedikt Stebner <Gillibald@users.noreply.github.com>
Date:   Mon Dec 9 07:52:07 2024 +0100
<snip>

BTW, I should note that this also happens in the application I have, but since it repros in the control gallery, I used that so that you don't have to worry about any of my code :)

Never even seen that 🫣

Playing around with this some more, this seems specific to my 7680x2160 resolution ultra-wide. When I put the window on my regular 4K monitors I don't get this behavior.