WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

WebView2 PDF Menu doesn't display if your control is small on load; ever

Open bnunAG opened this issue 2 years ago • 6 comments

Description When the webview2 control is below a certain size on load, the PDF tool bar will NEVER load. However, when the control is larger and a refresh is run, the tool bar will show and disappear as expected.

Version SDK: 1.0.1823.32 Runtime: Version 114.0.1823.82 (Official build) (64-bit) Framework: WinForms OS: Win10, 22H2 19045.3086

Repro Steps Create form with small webview2 control, auto set the source to load a PDF from a webpage (https://visualstudio.microsoft.com/keyboard-shortcuts.pdf) Expectations are that the toolbar would pop in when the control gets large enough, instead it never shows.

image image

Now that it is larger and I've run webview.reload it will show the toolbar image

AB#45691041

bnunAG avatar Jul 21 '23 16:07 bnunAG

@bnunAG what size did you make it to reproduce this bug, I'm interested to see if it does it on wpf

Danielx64 avatar Jul 21 '23 21:07 Danielx64

@bnunAG what size did you make it to reproduce this bug, I'm interested to see if it does it on wpf

In my bug test form I created, I sized the control to a randomly small size (234, 127).

bnunAG avatar Jul 24 '23 14:07 bnunAG

Thanks for the bug report. I added it to our backlog for us to investigate.

monica-ch avatar Jul 25 '23 21:07 monica-ch

Any updates?

texagkyle avatar Jun 12 '24 21:06 texagkyle

Hi @texagkyle, this issue is tagged as priority-low. As stated in the readme:

priority-low We have considered this issue and decided that we will not be able to address it in the near future. Developers are welcomed to provide justifications on this issue for us to revisit the prioritization

victorhuangwq avatar Jun 19 '24 16:06 victorhuangwq

@victorhuangwq anyway you guys could provide a minimum size necessary for the toolbar to work properly?

texagkyle avatar Jun 25 '24 15:06 texagkyle

minimum size necessary for the toolbar to work properly

Please set Height >250px and Width > 350px

Master-Ukulele avatar Oct 11 '24 18:10 Master-Ukulele