AdobeDocs / AdobeDocs/pdfservices-api-documentation
Embed API FULL_WINDOW MODE triggers scroll on page when it focuses a comment
- Dominant language
- JavaScript
- Stars
- 20
- Forks
- 229
- PR merge metrics
- No merged PRs in 30d
Description
## READ ME FIRST
This repository is for documentation related to Adobe's PDF Services. If you have a support question, please ask it on our forums: https://community.adobe.com/t5/document-services-apis/bd-p/Document-Cloud-SDK?page=1&sort=latest_replies&filter=all
**Describe the bug**
I am using the FULL_WINDOW mode inside a scrolling container. Whenever I have the comments panel open and I focus a comment that is down towards the bottom of the page it triggers my container to scroll.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to https://acrobatservices.adobe.com/view-sdk-demo/index.html#/view/FULL_WINDOW/Bodea%20Brochure.pdf
2. Open up inspector
3. Set the pdf parent container to overflow: auto
4. Copy the pdf container and paste it into the parent so you have more content to scroll
5. Start creating comments until you have enough that fill the page
6. Click on a comment and notice the entire page jump
7. Notice if you start drawing at this point that everytime you release it will jump to the bottom of the page.
8. If you close the comments panel. No jumping.
9. If you click an annotation it opens up the comments panel and whole page jumps
**Expected behavior**
Comment scrolling should be contained inside the iframe and not propegate out to the users scrollable container
**Screenshots**
Here is a video on how to reproduce using your hosted example at: https://acrobatservices.adobe.com/view-sdk-demo/index.html#/view/FULL_WINDOW/Bodea%20Brochure.pdf
video: https://drive.google.com/file/d/1a6_MRT7vb0mZLLfnRu2KmpDs98mIOWCt/view?usp=sharing
**Desktop (please complete the following information):**
- OS: [e.g. iOS] MacOS
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22] Version 137.0.7151.120
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
Contributor guide
Research direction
Start with the hosted FULL_WINDOW demo and reproduce the issue using a scrollable parent, an open comments panel, and focused comments or annotations. Compare the parent-container behavior with the expected iframe-contained scrolling; done means focusing or drawing comments no longer scrolls the surrounding page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100