mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 23:58:07 +02:00
Ensure that the document is rendered on load, no matter what happens, by always calling PDFViewer.update
*after* the initial position has been set
This commit is contained in:
parent
8391aacb89
commit
c253ee9ab8
1 changed files with 6 additions and 0 deletions
|
@ -985,6 +985,12 @@ let PDFViewerApplication = {
|
|||
|
||||
pdfViewer.currentScaleValue = pdfViewer.currentScaleValue;
|
||||
this.setInitialView(initialParams.hash);
|
||||
}).then(function() {
|
||||
// At this point, rendering of the initial page(s) should always have
|
||||
// started (and may even have completed).
|
||||
// To prevent any future issues, e.g. the document being completely
|
||||
// blank on load, always trigger rendering here.
|
||||
pdfViewer.update();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue