MicrosoftEdge / MicrosoftEdge/WebView2Feedback

ViewController not visible after change parent of owner control

Open
#2,070 6 comments 0 reactions 1 assignee View on GitHub

@champnic is already working on this.

Since Jan 11, 2022.

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

Description

Hello,
when I change the parent of the form that contains the WebView2 the ViewController goes into invisible state.
Even calling Put_IsVisible to true or trying to re-assign the parent with Put_ParentWindow the problem is not solved

the environment used is Delphi (Embarcadero) and when you change a parent all the handles of the children are recreated.

to date the only workaround I have found is to re-create the webView, but in this case I lose all the various operations done on the previously loaded page ...

I am using the latest version of WebView2Loader.dll [1.0.1083.0] and the latest WebView2 Runtime [97.0.1072.55]

Best regards

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.