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
This commit is contained in:
David 2024-08-20 14:51:51 +01:00 committed by Copybot
parent 52ff5ec4a7
commit de3661f7c3

View file

@ -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