Restrict width and height if specified when using pdf.js so not all pages are shown

Created on 14 August 2019, over 5 years ago
Updated 11 March 2023, about 2 years ago

When using pdf.js, there is no restriction on width and height.
This makes that all pages are shown, taking a lot of vertical space.

Patch adds restrictions, but if height is left empty, the current behavior of showing all pages will be kept, in case someone wants that.

Original report:

In our case, with PDF.js, all pages of a PDF are shown, equal what height we setup in the display-settings. We would expect, that the height restrict the viewer to show all pages of the PDF at once?

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany rainer f. gottlieb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024