Merge pull request #5721 from Snuffleupagus/move-findController-resolveFirstPage

Move the call to |PDFFindController.resolveFirstPage| into PDFViewer
This commit is contained in:
Yury Delendik 2015-02-27 06:33:15 -06:00
commit a0a94344d7
2 changed files with 4 additions and 2 deletions

View File

@ -306,6 +306,10 @@ var PDFViewer = (function pdfViewer() {
if (this.defaultRenderingQueue) {
this.update();
}
if (this.findController) {
this.findController.resolveFirstPage();
}
}.bind(this));
},

View File

@ -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.