# Page transition issues in PDF.js viewer

**URL:** <https://pdfjs.community/t/page-transition-issues-in-pdf-js-viewer/1364>\
**Category:** Technical Support\
**Created:** [February 10, 2022, 12:51am UTC](https://pdfjs.community/t/page-transition-issues-in-pdf-js-viewer/1364 "2022-02-10T00:51:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shruti](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@shruti](https://pdfjs.community/u/shruti)\
**Post date:** [February 10, 2022, 12:51am UTC](https://pdfjs.community/t/page-transition-issues-in-pdf-js-viewer/1364/1 "2022-02-10T00:51:16Z")

</div>

**Which product are you using?**  
PDF.js Express Viewer

**PDF.js Express Viewer**

**Detailed description of issue**  
In the continuous page transition option, 2 scroll bars are shown; 1 for the document and one for the page. This causes several issues:

1. Clicking on search results in the search window does not display the highlighted phrase in the document if both the inner and outer scroll bar are not correctly positioned.
2. Page numbers are not displayed until the outer scroll bar is at the bottom of the page.
3. To avoid the double scroll bars, if you switch to page by page transition, scrolling down opens the next page before user can scroll to the bottom of the current page.  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/b106674f34062e15d7c373120ee34fb23637dc7f.png)

**Expected behaviour**  
Can we remove the internal scroll bar in the continuous page transition mode to access the document and search results better? If so, how do we do that?  
If not, are there any alternate options to resolve above mentioned issues?

**Does your issue happen with every document, or just one?**  
Every document

**Link to document**  
NA

**Code snippet**  
NA

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [February 10, 2022, 12:51am UTC](https://pdfjs.community/t/page-transition-issues-in-pdf-js-viewer/1364/3 "2022-02-10T00:51:20Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [PDF.js Express Viewer](https://pdfjs.express/documentation/viewer/overview)
- [PDF.js Express Viewer Overview - What is PDF.js Express Viewer?](https://pdfjs.express/documentation/get-started-viewer#what-is-pdf.js-express-viewer?)
- [Electron PDF.js Viewer](https://pdfjs.express/documentation/electron)

APIs:
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [Core.DisplayModeManager - setDisplayMode(displayMode)](https://pdfjs.express/api/Core.DisplayModeManager.html#setDisplayMode__anchor)
- [Core.Annotations.RotationUtils - PathCustomAnnotationRotationMixin()](https://pdfjs.express/api/Core.Annotations.RotationUtils.html#PathCustomAnnotationRotationMixin__anchor)

Forums:
- [How to set default page transition when viewer loads](https://pdfjs.community/t/how-to-set-default-page-transition-when-viewer-loads/761/1)
- [How to customize UI?](https://pdfjs.community/t/how-to-customize-ui/1199/1)
- [Search result not finding a word listed in a document](https://pdfjs.community/t/search-result-not-finding-a-word-listed-in-a-document/1318/1)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [February 14, 2022, 9:51pm UTC](https://pdfjs.community/t/page-transition-issues-in-pdf-js-viewer/1364/4 "2022-02-14T21:51:45Z")

</div>

Hi there,

This is an issue with your application and not PDF.js Express. Express fills the height of the container you mount it in, and that needs to managed from within your own application.

Thanks,  
Logan
