Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem/Bug]: WebView2 window moves outside of parent window's bounds when reloading a page with a modified input value #4350

Closed
k-bu opened this issue Feb 6, 2024 · 3 comments
Assignees
Labels
bug Something isn't working regression Something used to work but doesn't anymore tracked We are tracking this work internally.

Comments

@k-bu
Copy link

k-bu commented Feb 6, 2024

What happened?

WebView2 control windows move down and to the right inside of the bounds of parent windows, thus they also create empty borders on the top and on the left side. This happens each time when the "Reload site? Changes you made may not be saved." dialog gets displayed.
Maybe it was already reported via issue #4349.

image

image

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

121.0.2277.98

SDK Version

2357.0

Framework

Win32

Operating System

Windows 11

OS Version

22000.2713

Repro steps

  1. Start the browser application WebView2APISample
  2. Navigate to https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event
  3. Enter any value into the form in the middle of the page
  4. Press the Reload button
  5. The WebView2 windows moves down and to the right inside of the bounds of the parent window (empty borders are created on the top and on the left side)
  6. If you cancel the following dialog and press Reload again the WebView2 window even moves further downwards each time (also the following dialog)

Repros in Edge Browser

No

Regression

Regression in newer Runtime

Last working version (if regression)

120.0.2210.144

AB#48872147

@k-bu k-bu added the bug Something isn't working label Feb 6, 2024
@github-actions github-actions bot added the regression Something used to work but doesn't anymore label Feb 6, 2024
@PCRacer
Copy link

PCRacer commented Feb 6, 2024

This error is related to mine...

Please see this entry!

#4349

On a secondary monitor the screen completely blacks out, and on the main screen the display drops down as shown above.
....

@fabiorocha fabiorocha added the tracked We are tracking this work internally. label Feb 6, 2024
@champnic
Copy link
Member

champnic commented Feb 6, 2024

✅ Successfully linked to Azure Boards work item(s):

@nishitha-burman
Copy link
Collaborator

Fixed in version 123.0.2392.0+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something used to work but doesn't anymore tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

8 participants