
Hello,
We are experiencing an issue with our application, which supports high DPI and uses WebView2 in the document window.
Occasionally, the WebView2 area appears to be shifted when opening a document window, especially after switching between different monitors.
Below are the steps to reproduce the issue:
I will send sample program later by email.
<Environmental>
I'm using laptop PC and 2 monitors.
a) Laptop PC
Resolution: 1536 x 864 px
Physical Size: 31 mm x 17 mm
DPI: Horizontal = 1258.53, Vertical = 1290.92
b) Monitor-1
Resolution: 3440 x 1440 px
Physical Size: 80 mm x 35 mm
DPI: Horizontal = 1092.2, Vertical = 1045.03
c) Monitor-2
Resolution: 1920 x 1080 px
Physical Size: 50 mm x 29 mm
DPI: Horizontal = 975.36, Vertical = 945.93
<Steps>
1. Connect laptop PC and Monitor-1.
2. Launch sample application and maximize it on diaplay of laptop PC
3. Show document windows and close all of it.
4. Disconnect Monitor-1, and connect laptop PC and Monitor-2.
5. Move the application to Monitor-2.
6. Show document windows and close all of it.
7. Disconnect Monitor-2, and connect laptop PC and Monitor-1, then the application will be displayed on laptop PC.
8. Show document windows — at this point, the WebView2 area appears to be shifted.