1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Update the CaretBrowsingMode toolbar-height if the toolbarDensity preference changes (PR 18786 follow-up)

Otherwise the isVisible-calculations may not work correctly.
This commit is contained in:
Jonas Jenwald 2024-10-01 17:37:44 +02:00
parent f2a132f826
commit 7c9d177826
2 changed files with 22 additions and 3 deletions

View file

@ -876,6 +876,7 @@ const PDFViewerApplication = {
moveCaret(isUp, select) {
this._caretBrowsing ||= new CaretBrowsingMode(
this._globalAbortController.signal,
this.appConfig.mainContainer,
this.appConfig.viewerContainer,
this.appConfig.toolbar?.container