Use full screen width in presentation mode
This commit is contained in:
parent
5fc806823e
commit
db84851e27
3 changed files with 9 additions and 5 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue