Participant
July 6, 2023
Question
HUD view position broken in PDF Embed API when container is scrolling
- July 6, 2023
- 0 replies
- 201 views
When the PDF Embed API is rendered into an element within a container that has an `overflow-y: scroll; ` property, the HUD view positioning breaks when scrolling. Instead of remaining positioned at the bottom, it seems to scroll up together with the first page of the document (see attached screen capture). This happens when the embed mode is set to `IN_LINE` and any container around it has a fixed height set.
The positioning seems to be correctly reset after scrolling once a browser zoom event is triggered, however it will be incorrect again once the user proceeds to scroll again.
Steps to reproduce:
- Create a div container that has a fixed height and an `overflow-y: scroll` property (also happens with `auto`).
- Use the Adobe PDF Embed API to render any PDF into an element within that div container using in-line embed mode.
- Scroll within the PDF.
