Skip to content

Commit

Permalink
Merge pull request mozilla#5721 from Snuffleupagus/move-findControlle…
Browse files Browse the repository at this point in the history
…r-resolveFirstPage

Move the call to |PDFFindController.resolveFirstPage| into PDFViewer
  • Loading branch information
yurydelendik authored and speedplane committed Mar 4, 2015
2 parents 6b9cb8f + 8131440 commit 8d23333
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions web/pdf_viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ var PDFViewer = (function pdfViewer() {
if (this.defaultRenderingQueue) {
this.update();
}

if (this.findController) {
this.findController.resolveFirstPage();
}
}.bind(this));
},

Expand Down
2 changes: 0 additions & 2 deletions web/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,8 +932,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.
Expand Down

0 comments on commit 8d23333

Please sign in to comment.