Open Bug 1735730 Opened 3 years ago Updated 2 years ago

Find in page doesn't bring the right text in view

Categories

(Firefox :: PDF Viewer, defect, P3)

defect

Tracking

()

People

(Reporter: marco, Unassigned)

References

Details

(Whiteboard: [pdfjs-text-search][pdfjs-form-xfa])

STR:

  1. Open https://bug1716758.bmoattachments.org/attachment.cgi?id=9240560
  2. Press Ctrl+F
  3. Write "Old Age"
  4. Press ENTER or click on the down arrow in the find bar

"Old Age" text is highlighted, but Firefox doesn't scroll it into view, it scrolls to a spot in the page which is higher than where the "Old Age" text is.

This is related to https://github.com/mozilla/pdf.js/pull/13908, since the DOM-structure (or possibly CSS rules) of the xfaLayer apparently doesn't play nice with the scrollIntoView helper function (which is used for all scrolling).

Flags: needinfo?(bdahl)
Severity: -- → S3
Priority: -- → P3
Flags: needinfo?(bdahl)
Whiteboard: [pdfjs-text-search][pdfjs-form-xfa]
You need to log in before you can comment on or make changes to this bug.