Merge pull request #5721 from Snuffleupagus/move-findController-resolveFirstPage
Move the call to |PDFFindController.resolveFirstPage| into PDFViewer
This commit is contained in:
commit
a0a94344d7
@ -306,6 +306,10 @@ var PDFViewer = (function pdfViewer() {
|
||||
if (this.defaultRenderingQueue) {
|
||||
this.update();
|
||||
}
|
||||
|
||||
if (this.findController) {
|
||||
this.findController.resolveFirstPage();
|
||||
}
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
|
@ -863,8 +863,6 @@ var PDFViewerApplication = {
|
||||
|
||||
self.loadingBar.setWidth(document.getElementById('viewer'));
|
||||
|
||||
self.findController.resolveFirstPage();
|
||||
|
||||
if (!PDFJS.disableHistory && !self.isViewerEmbedded) {
|
||||
// The browsing history is only enabled when the viewer is standalone,
|
||||
// i.e. not when it is embedded in a web page.
|
||||
|
Loading…
x
Reference in New Issue
Block a user