-
Notifications
You must be signed in to change notification settings - Fork 51
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
App needs to be on PerMonitorV2 DPI awareness to look properly #1
Comments
Thanks. I've opened a bug to track this. Perhaps we're missing some DPI awareness calls from the sample and documentation. |
Hi, we're currently working on our documentation. It does indeed have to do with DPI awareness. To fix this, you need to be per monitor DPI aware. You can either set it in the manifest or add a call before you create the HWND: SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); |
Have a PR out to update the getting-started walkthrough - MicrosoftDocs/edge-developer@ec53ad2. Will leave this issue open as long as the behavior remains the same. |
Update - doc PR is merged. |
After following step 3 of the Getting Started, I see the WebView2 offset:
WinVersion: 17763.437
NuGet: 0.8.149
Resolution/DPI: 2256x1504 @ 150% (Surface Laptop 2)
If I set my DPI to 100% it seems to work fine.
The text was updated successfully, but these errors were encountered: