diff --git a/web/secondary_toolbar.js b/web/secondary_toolbar.js index 468dd69c9..fdfb2b638 100644 --- a/web/secondary_toolbar.js +++ b/web/secondary_toolbar.js @@ -15,7 +15,6 @@ import { SCROLLBAR_PADDING, ScrollMode, SpreadMode } from "./ui_utils.js"; import { CursorTool } from "./pdf_cursor_tools.js"; -import { PDFSinglePageViewer } from "./pdf_viewer.js"; /** * @typedef {Object} SecondaryToolbarOptions @@ -166,22 +165,6 @@ class SecondaryToolbar { // Bind the event listener for adjusting the 'max-height' of the toolbar. this.eventBus._on("resize", this._setMaxHeight.bind(this)); - - // Hide the Scroll/Spread mode buttons, when they're not applicable to the - // current `BaseViewer` instance (in particular `PDFSinglePageViewer`). - this.eventBus._on("baseviewerinit", evt => { - if (evt.source instanceof PDFSinglePageViewer) { - this.toolbarButtonContainer.classList.add( - "hiddenScrollModeButtons", - "hiddenSpreadModeButtons" - ); - } else { - this.toolbarButtonContainer.classList.remove( - "hiddenScrollModeButtons", - "hiddenSpreadModeButtons" - ); - } - }); } /** diff --git a/web/viewer.css b/web/viewer.css index df33a5054..a8810c528 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -625,11 +625,6 @@ html[dir="rtl"] .secondaryToolbar { margin-bottom: -4px; } -#secondaryToolbarButtonContainer.hiddenScrollModeButtons > .scrollModeButtons, -#secondaryToolbarButtonContainer.hiddenSpreadModeButtons > .spreadModeButtons { - display: none !important; -} - .doorHanger, .doorHangerRight { border-radius: 2px; diff --git a/web/viewer.html b/web/viewer.html index c49aee352..2c22f29ab 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -196,32 +196,32 @@ See https://github.com/adobe-type-tools/cmap-resources
-