We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 687935a + fd0f844 commit ea907daCopy full SHA for ea907da
1 file changed
src/components/PDFElements.vue
@@ -294,6 +294,11 @@ export default {
294
this.selectedDocIndex = 0
295
this.selectedPageIndex = 0
296
this.$emit('pdf-elements:end-init', { docsCount: docs.length })
297
+ this.$nextTick(() => {
298
+ if (this.autoFitZoom) {
299
+ this.adjustZoomToFit()
300
+ }
301
+ })
302
}
303
},
304
@@ -835,6 +840,10 @@ export default {
835
840
if (Math.abs(optimalScale - this.scale) > 0.01) {
836
841
this.scale = optimalScale
837
842
this.visualScale = optimalScale
843
+ this.pdfDocuments.forEach((doc) => {
844
+ doc.pagesScale = doc.pagesScale.map(() => this.scale)
845
846
+ this.cachePageBounds()
838
847
839
848
849
0 commit comments