Calendar mouse pointer misalignment in XAML previewer
Opened this issue · 1 comments
Describe the bug
Calendar in XAML previewer has mouse pointer misalignment using windows display scaling set to 150% on default zoom 100%. Changing to another zoom level for the previewer fixes this and returning to 100% won't cause the same issue anymore.
EDIT: It seems that the default zoom when opening an axaml file is not actually 100% but likely around 80-90%. When switching the previewer zoom to 75% and back to 100% or 125% and back to 100%, the preview is bigger than what 100% was when the preview was first drawn.
To Reproduce
- Set display scaling to 150%
- Open a .axaml file in Visual Studio 2022 v17 containing a calendar
- The zoom for the previewer is 100%
- Hover over the calendar with the mouse and notice that the focused date is misaligned towards the upper left
- Changing the zoom for the previewer using the drop down or CTRL + scrollwheel to fix the misalignment
- Close the .axaml file and open again to reproduce
Expected behavior
The default zoom level in the previewer after opening a .axaml file should behave in the same way for the calendar as it does after changing the zoom level once.
Avalonia version
11.1.3
OS
Windows
Additional context
Realized this should have been posted in AvaloniaVS.