DesktopWebView2ControlMBS & Hi-DPI

I am working on a Hi-DPI monitor with a font scaling of 1.25. When I compile an app with the DesktopWebView2ControlMBS, using the “Supports Hi-DPI” setting, it scales not correctly.

Initially, when the app opens, everything looks ok:

But after resizing the window, the WebView2 control seems to apply the scaling factor the wrong way around:

Is there a workaround for this? I could apply the scaling factor myself - if I would know where I could obtain it. Any help would be much appreciated!

Sorry for the bug. We’ll fix it.
And luckily I had the same problem with Scintilla, so I may just apply the same fix here.

Fix will come to next pre-release.

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.