WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

[Problem/Bug]: Toolbar disappears either hiding all left side (bookmarks) or right side (Search, FullScreen, MoreSettings, PageSelector, PageLayout, Save, SaveAs, Print) icons.

Open setniessesed opened this issue 1 year ago • 4 comments

What happened?

Following report #2866 : Toolbar disappears either hiding all left side (bookmarks) or right side (Search, FullScreen, MoreSettings, PageSelector, PageLayout, Save, SaveAs, Print) icons.

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

127.0.2651.98

SDK Version

1.0.2592.51

Framework

Winforms

Operating System

Windows 11

OS Version

No response

Repro steps

  1. Using WebView2 HiddenPdfToolbarItems
  2. Hide the left-side icon of Pdf tool bar (Bookmarks) or, hide all right-side icons (Search, FullScreen, MoreSettings, PageSelector, PageLayout, Save, SaveAs, Print)
  3. Open a PDF file, the toolbar disappears

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

AB#53496551

setniessesed avatar Aug 12 '24 10:08 setniessesed

I can confirm the repo with hiding the bookmarks. Others (like hiding search) works fine, tool bar shows, and the search icon hides. Can you recheck if the problem as I described?

Master-Ukulele avatar Aug 13 '24 18:08 Master-Ukulele

If I uncomment any of the commented lines below the pdf toolbar disappears.

viewer.CoreWebView2.Settings.HiddenPdfToolbarItems = //Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems.Bookmarks | //Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems.Search | Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems.FullScreen | Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems.MoreSettings | Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems.PageSelector | Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems.PageLayout | Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems.Save | Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems.SaveAs | Microsoft.Web.WebView2.Core.CoreWebView2PdfToolbarItems.Print;

So this is about hiding Bookmarks and/or Search

setniessesed avatar Aug 14 '24 10:08 setniessesed

Thanks for providing the details. It's confirmed and we'll track this issue. But now, I see the problem should be - Toolbar disappears either hiding all left side (bookmarks) or right side (Search, FullScreen, MoreSettings, PageSelector, PageLayout, Save, SaveAs, Print) icons.

Do you agree this is the correct description? And please edit the title and main content. @setniessesed @victorhuangwq

Master-Ukulele avatar Aug 26 '24 22:08 Master-Ukulele

Done. As you suggested.

setniessesed avatar Aug 27 '24 09:08 setniessesed

Almost year past Seems still occur Any solution ?

graysuit avatar Jun 04 '25 12:06 graysuit