fix missing pdf viewer update when scale is the same (#3510)

This commit is contained in:
Denys Vuika
2018-06-20 13:03:25 +01:00
committed by Eugenio Romano
parent 511f97ce25
commit 4984cc4437

View File

@@ -278,10 +278,10 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
this.pdfViewer._pages.forEach(function (currentPage) { this.pdfViewer._pages.forEach(function (currentPage) {
currentPage.update(newScale); currentPage.update(newScale);
}); });
}
this.pdfViewer.update(); this.pdfViewer.update();
} }
}
/** /**
* Check if the request scale of the page is the same for avoid useless re-rendering * Check if the request scale of the page is the same for avoid useless re-rendering