mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Merge pull request #15413 from calixteman/items_size
Set a display value for the secondary toolbar buttons
This commit is contained in:
commit
b0a021d2cc
5 changed files with 24 additions and 51 deletions
|
@ -810,9 +810,7 @@ const PDFViewerApplication = {
|
|||
*/
|
||||
_hideViewBookmark() {
|
||||
// URL does not reflect proper document location - hiding some buttons.
|
||||
const { toolbar, secondaryToolbar } = this.appConfig;
|
||||
toolbar.viewBookmark.hidden = true;
|
||||
secondaryToolbar.viewBookmarkButton.hidden = true;
|
||||
this.appConfig.secondaryToolbar.viewBookmarkButton.hidden = true;
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -2292,7 +2290,6 @@ function webViewerInitialized() {
|
|||
}
|
||||
|
||||
if (!PDFViewerApplication.supportsFullscreen) {
|
||||
appConfig.toolbar.presentationModeButton.classList.add("hidden");
|
||||
appConfig.secondaryToolbar.presentationModeButton.classList.add("hidden");
|
||||
}
|
||||
|
||||
|
@ -2445,7 +2442,6 @@ function webViewerUpdateViewarea({ location }) {
|
|||
const href = PDFViewerApplication.pdfLinkService.getAnchorUrl(
|
||||
location.pdfOpenParams
|
||||
);
|
||||
PDFViewerApplication.appConfig.toolbar.viewBookmark.href = href;
|
||||
PDFViewerApplication.appConfig.secondaryToolbar.viewBookmarkButton.href =
|
||||
href;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue