Merge pull request #18510 from timvandermeij/findbar-button
Improve how the findbar's toggle button is referenced in the viewer code
This commit is contained in:
commit
7199c967e6
@ -717,7 +717,7 @@ const PDFViewerApplication = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.supportsIntegratedFind) {
|
if (this.supportsIntegratedFind) {
|
||||||
appConfig.toolbar?.viewFind?.classList.add("hidden");
|
appConfig.findBar?.toggleButton?.classList.add("hidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
||||||
|
|||||||
@ -38,7 +38,6 @@ import {
|
|||||||
* @property {HTMLButtonElement} next - Button to go to the next page.
|
* @property {HTMLButtonElement} next - Button to go to the next page.
|
||||||
* @property {HTMLButtonElement} zoomIn - Button to zoom in the pages.
|
* @property {HTMLButtonElement} zoomIn - Button to zoom in the pages.
|
||||||
* @property {HTMLButtonElement} zoomOut - Button to zoom out the pages.
|
* @property {HTMLButtonElement} zoomOut - Button to zoom out the pages.
|
||||||
* @property {HTMLButtonElement} viewFind - Button to open find bar.
|
|
||||||
* @property {HTMLButtonElement} editorFreeTextButton - Button to switch to
|
* @property {HTMLButtonElement} editorFreeTextButton - Button to switch to
|
||||||
* FreeText editing.
|
* FreeText editing.
|
||||||
* @property {HTMLButtonElement} download - Button to download the document.
|
* @property {HTMLButtonElement} download - Button to download the document.
|
||||||
|
|||||||
@ -49,7 +49,6 @@ function getViewerConfiguration() {
|
|||||||
next: document.getElementById("next"),
|
next: document.getElementById("next"),
|
||||||
zoomIn: document.getElementById("zoomIn"),
|
zoomIn: document.getElementById("zoomIn"),
|
||||||
zoomOut: document.getElementById("zoomOut"),
|
zoomOut: document.getElementById("zoomOut"),
|
||||||
viewFind: document.getElementById("viewFind"),
|
|
||||||
print: document.getElementById("print"),
|
print: document.getElementById("print"),
|
||||||
editorFreeTextButton: document.getElementById("editorFreeText"),
|
editorFreeTextButton: document.getElementById("editorFreeText"),
|
||||||
editorFreeTextParamsToolbar: document.getElementById(
|
editorFreeTextParamsToolbar: document.getElementById(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user