MicrosoftEdge / MicrosoftEdge/WebView2Feedback

WebView2 fails to load in Office Add-ins, with different monitor scaling settings

Open
#820 36 comments 9 reactions 1 assignee View on GitHub

@champnic is already working on this.

Since Jan 20, 2021.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Description
An Office Add-in with WebView2 rendering in a custom task pane stops working on displays with different scaling than the main display.

Added solution where problem can be replicated:
WordWebView2AddIn.zip

Version
SDK: 1.0.664.37
Runtime: WebView2 Runtime 87.0.664.75
Framework: WinForms
OS: Win10 1909, Word 2101 (Build 13628.20118)

Repro Steps

  1. Download solution provided in the bug
  2. Assuming you have at least two displays, go to Display Settings and change the scale of items on one of your displays so that it differs from your main display (e.g. set the main display to 100%, secondary display to 125%)
  3. Make sure the Start-up screen in Word is disabled
  4. Start Word from the add-in solution in the secondary display
  5. Check if page is rendered and word is not frozen

Screenshots
Expected and what is displayed when opening Word on main screen:
image

Displayed when opening on a secondary screen (the application is frozen in this case) and also when start-up is enabled
image2

Additional context
Also replicable in the latest pre-release version.

When having the startup screen (also called backstage) enabled, the Webview2 control does not render at all, despite the navigation happening in the background. That was verified only through debugging.

AB#31424281

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.