Merge pull request #2920 from Snuffleupagus/thumbnail-on-fullscreen-close

Scroll the Thumbnail of the current page into view when exiting fullscreen mode
This commit is contained in:
Brendan Dahl 2013-03-12 16:57:23 -07:00
commit 605da8bf67

View File

@ -1730,6 +1730,10 @@ var PDFView = {
this.page = this.page;
this.clearMouseScrollState();
this.hidePresentationControls();
// Ensure that the thumbnail of the current page is visible
// when exiting fullscreen mode.
scrollIntoView(document.getElementById('thumbnailContainer' + this.page));
},
showPresentationControls: function pdfViewShowPresentationControls() {