mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix current page number issue (#1970)
This commit is contained in:
committed by
Eugenio Romano
parent
8462c3da1f
commit
069345a028
@@ -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