MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
440 stars 52 forks source link

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

Open setniessesed opened 1 month ago

setniessesed commented 1 month ago

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

Master-Ukulele commented 1 month ago

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?

setniessesed commented 1 month ago

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

Master-Ukulele commented 3 weeks ago

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

setniessesed commented 2 weeks ago

Done. As you suggested.