MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Getting screen coordinates from element in iFrame

Open
#5,244 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is there any way to expose the relative or absolute coordinates of a CoreWebView2Frame in WebView2?

I need to position a .Net dialog over an element, which is fine in a top level frame, but not if the element is in a frame.

Not easy to use JS as the frames may not be from the same source, so won't easily be able get the location of the iFrame.

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.

Research direction

Start with the CoreWebView2Frame API and the positioning scenario described in the issue. Determine how relative or absolute frame coordinates could be exposed for a .NET dialog, including frames from another source. Done means the requested coordinate information is available for positioning over an element in a frame.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.