Use full screen width in presentation mode

This commit is contained in:
fkaelberer 2014-03-28 08:58:18 +01:00
parent 5fc806823e
commit db84851e27
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':