Skip to content

Conversation

@Nextra
Copy link
Contributor

@Nextra Nextra commented Aug 1, 2024

PopupBox correctly transforms from device coordinates using the PresentationSource transform matrix, but then uses the global system DPI to transform back to device coordinates. This causes placement issues on systems with multiple DPI/scaling settings.

These examples were captured on a system with mixed scaling of 100% on the primary screen and 225% on the secondary, with the demo app placed on the latter.

Before:

image

After:

image

I chose BottomAndAlignRightEdges because the misalignment is particularly noticeable, but ultimately every placement mode is misaligned.

 PopupBox correctly transforms from device coordinates using the PresentationSource transform matrix, but then uses the global system DPI to transform back to device coordinates. This causes placement issues on systems with multiple DPI/scaling settings.
@Keboo Keboo added this to the 5.2.0 milestone Aug 7, 2024
@Keboo Keboo added bug release notes Items are likely to be highlighted in the release notes. labels Aug 7, 2024
@Keboo Keboo enabled auto-merge (squash) August 7, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug release notes Items are likely to be highlighted in the release notes.

2 participants