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

WinForms (DpiUnawareGdiScaled): control renders in wrong location on scaled monitor #2705

Open
ugumba opened this issue Aug 22, 2022 · 4 comments
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@ugumba
Copy link

ugumba commented Aug 22, 2022

This is in reference to #1700 which, with V105, corrected the size of WebView2 on a scaled monitor.
However, the offset in relation to the application window is still not correct.
(We have various legacy components which tie us to DpiUnawareGdiScaled for the time being.)

See screenshots below.
Only the rendered pixels are in the wrong location - mouse events behave as if the controls are positioned correctly. (I.e. I have to click a lot to the right and a bit down from what I see onscreen.)

Version
SDK: 1.0.1293.44
Runtime: Beta 105.0.1343.10
Framework: WinForms
OS: Win11

Repro Steps
Create a WinForms app, use DpiUnawareGdiScaled
Embed a WebView2 control at an offset within the main app Form (e.g. within a TabPage)
Launch, and move between unscaled/scaled monitors

Screenshots
On an unscaled monitor (the little gear button is the top left of the WebView2 content):
image
On a 150% scaled monitor with version 105 (notice that the position is incorrect):
image
On a 150% scaled monitor before version 105 (for reference only, notice that v105 corrects size, not position):
image

AB#48526450

@ugumba ugumba added the bug Something isn't working label Aug 22, 2022
@ugumba
Copy link
Author

ugumba commented Aug 22, 2022

Duplicate of #2704.

@veevandyke
Copy link

Google discontinued support for maps in the old control as of yesterday, so this has now become mission critical to have it working. Any updates on this one?

@EnaXnaY
Copy link

EnaXnaY commented Dec 1, 2023

Have same issue at 4K monitor ;) at normal notebook display and normal monitor (even if scaled) displayed correctly ;)

bug at 4K monitor

@tochukwuIbeEkeocha tochukwuIbeEkeocha added the tracked We are tracking this work internally. label Jan 17, 2024
@tochukwuIbeEkeocha
Copy link
Contributor

Known issue, adding to our backlog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

6 participants