Merge pull request #4524 from fkaelberer/fullWidthInPresentationMode

Use full screen width in presentation mode
This commit is contained in:
Yury Delendik 2014-04-02 09:03:37 -05:00
commit 75d09fd820
3 changed files with 9 additions and 5 deletions

View file

@ -283,9 +283,11 @@ var PDFView = {
if (!currentPage) {
return;
}
var pageWidthScale = (this.container.clientWidth - SCROLLBAR_PADDING) /
var hPadding = PresentationMode.active ? 0 : SCROLLBAR_PADDING;
var vPadding = PresentationMode.active ? 0 : VERTICAL_PADDING;
var pageWidthScale = (this.container.clientWidth - hPadding) /
currentPage.width * currentPage.scale;
var pageHeightScale = (this.container.clientHeight - VERTICAL_PADDING) /
var pageHeightScale = (this.container.clientHeight - vPadding) /
currentPage.height * currentPage.scale;
switch (value) {
case 'page-actual':