salvadordf / WebView4Delphi

WebView4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows.
https://www.briskbard.com/forum/
MIT License
280 stars 56 forks source link

When turning on 150% blooming on a 4K screen, the rendering page will pop out of the Tabsheet border #44

Open xmoog opened 1 year ago

xmoog commented 1 year ago

When turning on 150% blooming on a 4K screen, the rendering page will pop out of the Tabsheet border My Exe Project Manifest Set: DPI Awareness: GDI Scaling Execution Level: As Invoker

Delphi Ver: XE 10.4.3 Under other circumstances, it is normal

在4K屏幕下并开启150%绽放时,渲染页会跳出Tabsheet的边框,其它情况下正常.

salvadordf commented 1 year ago

Hi, Selecting GDI scaling adds the following to the manifest : ` false

unaware
  <gdiScaling xmlns="http://schemas.microsoft.com/SMI/2017/WindowsSettings">true</gdiScaling>`

There's an unresolved issue in WebView2 when the application sets gdiScaling to true : https://github.com/MicrosoftEdge/WebView2Feedback/issues/1700

Select any other DPI Awareness value in the project options and it will work fine.