Merge pull request #3829 from Snuffleupagus/issue-3827

Apply the current zoom level value to each page in Presentation Mode
This commit is contained in:
Tim van der Meij 2013-10-20 03:32:54 -07:00
commit 5beefde2c7
2 changed files with 3 additions and 2 deletions

View File

@ -327,6 +327,7 @@ var PageView = function pageView(container, id, scale,
this.scrollIntoView = function pageViewScrollIntoView(dest) { this.scrollIntoView = function pageViewScrollIntoView(dest) {
if (PresentationMode.active) { // Avoid breaking presentation mode. if (PresentationMode.active) { // Avoid breaking presentation mode.
dest = null; dest = null;
PDFView.setScale(PDFView.currentScaleValue, true, true);
} }
if (!dest) { if (!dest) {
scrollIntoView(div); scrollIntoView(div);

View File

@ -397,8 +397,8 @@ var PDFView = {
}, },
get isHorizontalScrollbarEnabled() { get isHorizontalScrollbarEnabled() {
var div = document.getElementById('viewerContainer'); return (PresentationMode.active ? false :
return div.scrollWidth > div.clientWidth; (this.container.scrollWidth > this.container.clientWidth));
}, },
initPassiveLoading: function pdfViewInitPassiveLoading() { initPassiveLoading: function pdfViewInitPassiveLoading() {