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]: ShowPrintUI(); top of page is missing if page has been scrolled before printing #4653

Open
gudmundurtor opened this issue Jun 28, 2024 · 5 comments
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@gudmundurtor
Copy link

gudmundurtor commented Jun 28, 2024

What happened?

  1. Scroll page down
  2. Call ShowPrintUI();
  3. Top of page is missing

Tested with save as pdf.

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

1.0.2478.35

Framework

WPF

Operating System

Windows 11

OS Version

22631.3737

Repro steps

  1. Scroll page down
  2. ShowPrintUI();
  3. Top of page is missing

Tested with save as pdf.
Can be reproduced using WebView2WpfBrowser sample

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

AB#52085240

@gudmundurtor gudmundurtor added the bug Something isn't working label Jun 28, 2024
@ajtruckle
Copy link

I also confirm this behaviour. Only today did I update my WebView 2:

  • Runtime: 126.0.2592.68
  • SDK: 2592.51

I have just downgraded WV2 NuGet package and tried again (SDK 2535.41). Same behaviour.

This is a critical bug IMHO.
@champnic

@ajtruckle
Copy link

It also happens if you directly save as PDF without showing the UI. The output is still cropped.

@victorhuangwq
Copy link
Collaborator

@ajtruckle do you have a version number where it was last working?

@ajtruckle
Copy link

ajtruckle commented Jun 28, 2024

@victorhuangwq Sadly, I do not. But my WV2 sample I have downloaded is an older one (SDK 1671.0) and just navigated to a website, scrolled down and go to print. Boom … same issue. So, it is either:

  • been in WV2 a very long time and only just noticed.
  • never worked in WV2.
  • caused by the runtime (this I can't test).

Look:

image

I actually think that Edge is not behaving either. If I scroll both to top:

image

@champnic
Copy link
Member

I suspect a regression in the runtime. Adding the bug to our backlog.

@champnic champnic added the tracked We are tracking this work internally. label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

5 participants