mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Fix current page number issue (#1970)
This commit is contained in:
committed by
Eugenio Romano
parent
0ff1632934
commit
9a2e30f9b4
@@ -161,7 +161,7 @@ export class PdfViewerComponent {
|
|||||||
heigthContainer = documentContainer.clientHeight;
|
heigthContainer = documentContainer.clientHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
let currentPage = this.pdfViewer._pages[this.pdfViewer._currentPageNumber];
|
let currentPage = this.pdfViewer._pages[this.pdfViewer._currentPageNumber - 1];
|
||||||
|
|
||||||
let padding = 20;
|
let padding = 20;
|
||||||
let pageWidthScale = (widthContainer - padding) / currentPage.width * currentPage.scale;
|
let pageWidthScale = (widthContainer - padding) / currentPage.width * currentPage.scale;
|
||||||
|
|||||||
Reference in New Issue
Block a user