Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar mouse pointer misalignment in XAML previewer #499

Open
Wezz19 opened this issue Sep 30, 2024 · 1 comment
Open

Calendar mouse pointer misalignment in XAML previewer #499

Wezz19 opened this issue Sep 30, 2024 · 1 comment
Labels

Comments

@Wezz19
Copy link

Wezz19 commented Sep 30, 2024

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

  1. Set display scaling to 150%
  2. Open a .axaml file in Visual Studio 2022 v17 containing a calendar
  3. The zoom for the previewer is 100%
  4. Hover over the calendar with the mouse and notice that the focused date is misaligned towards the upper left
  5. Changing the zoom for the previewer using the drop down or CTRL + scrollwheel to fix the misalignment
  6. 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

Same issues containing videos:
#293
#342

@Wezz19 Wezz19 added the bug label Sep 30, 2024
@Wezz19
Copy link
Author

Wezz19 commented Sep 30, 2024

Realized this should have been posted in AvaloniaVS.

@timunie timunie transferred this issue from AvaloniaUI/Avalonia Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant