Explorar o código

Merge pull request #20035 from overleaf/dp-pdf-fit-height

Update zoom on window resize when pdf zoom is set to page-height

GitOrigin-RevId: 19b963ffbd9da95c0c97642c7cd2195578c295d3
David %!s(int64=2) %!d(string=hai) anos
pai
achega
de3661f7c3

+ 1 - 0
services/web/frontend/js/features/pdf-preview/util/pdf-js-wrapper.js

@@ -152,6 +152,7 @@ export default class PDFJSWrapper {
       if (
       if (
         currentScaleValue === 'auto' ||
         currentScaleValue === 'auto' ||
         currentScaleValue === 'page-fit' ||
         currentScaleValue === 'page-fit' ||
+        currentScaleValue === 'page-height' ||
         currentScaleValue === 'page-width'
         currentScaleValue === 'page-width'
       ) {
       ) {
         this.viewer.currentScaleValue = currentScaleValue
         this.viewer.currentScaleValue = currentScaleValue