Merge pull request #15413 from calixteman/items_size

Set a display value for the secondary toolbar buttons
This commit is contained in:
calixteman 2022-09-08 12:35:08 +02:00 committed by GitHub
commit b0a021d2cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 51 deletions

View file

@ -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;