amwx / FluentAvalonia

Control library focused on fluent design and bringing more WinUI controls into Avalonia
MIT License
1.05k stars 97 forks source link

Incorrect draggable height of AppWindow's title bar #606

Closed chenxuuu closed 2 months ago

chenxuuu commented 2 months ago

Describe the bug The draggable area of AppWindow's title bar exceeds the expected height It have wrong extra height AvaloniaApplication1.zip

Screenshots devenv_nc8ZXkCKLE

Desktop/Platform (please complete the following information):

chenxuuu commented 2 months ago

I found this bug is related to DPI, if I set to 200%, draggable area size will be double size of real title bar area size

chenxuuu commented 2 months ago

https://github.com/amwx/FluentAvalonia/blob/2264dfe44bce8b0f532f58909a47cd5edf9acdf7/src/FluentAvalonia/UI/Windowing/AppWindow/AppWindow.cs#L240

I delete * RenderScaling, this issue solved. But I don't konw why this happend. Somebody know reason?