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]: The WebView display area is smaller than the WebView window size #4095

Open
ztextplus opened this issue Oct 24, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@ztextplus
Copy link

ztextplus commented Oct 24, 2023

What happened?

The WebView display area is smaller than the WebView window size
image
Chrome_WidgetWin_0:size: 1203 x 694 ,pos: 0, 0 (0, 67)
Chrome_WidgetWin_1:size:1203 x 694, pos: 0, 0 (0, 67)
Chrome_RenderWidgetHostHWND:size: 1203 x 694 ,pos: 0, 0 (0, 67)
Intermediate D3D Window:size: 1203 x 694, pos: -514, -290 (-514, -223)
Web page display area:size: 557x 328

image

The offset of the Intermediate D3D Window should be wrong?

WebView2 version:118.0.2088.46

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

118.0.2088.46

SDK Version

No response

Framework

Win32

Operating System

Windows 10

OS Version

No response

Repro steps

  1. load webview.
  2. move the parent window.

Regression

Don't know

Last working version (if regression)

No response

@ztextplus ztextplus added the bug Something isn't working label Oct 24, 2023
@victorhuangwq
Copy link
Collaborator

Thanks for reporting this issue. @bradp0721 could you take a look at this?

@bradp0721 bradp0721 assigned johna-ms and unassigned bradp0721 Oct 24, 2023
@johna-ms
Copy link
Contributor

@ztextplus, I believe this is a dupe of #3839. Could you verify if your system has custom OS text scaling on? If so, I will close this and we can continue the conversation on the other issue.

@ztextplus
Copy link
Author

ztextplus commented Oct 27, 2023

@johna-ms I am very sure that this problem has nothing to do with DPI. I reproduced this problem on my own computer. When the problem occurred, the scaling factor of my monitor was 100%.

Then I also discovered a strange phenomenon. As I moved the main window, the display area of the web page became smaller and smaller. I believe if I keep moving the main window, the display area of the web page will disappear completely.

@ztextplus
Copy link
Author

@johna-ms I think the negative offset of the window Intermediate D3D Window should be the key to the problem.

@johna-ms
Copy link
Contributor

johna-ms commented Nov 1, 2023

You're right, I have never seen the Intermediate D3D window be offset like that. Could you give more detailed repro steps or a repro app? I can't repro this with a barebones Win32 application I'm wondering what else is going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants