Use full screen width in presentation mode
This commit is contained in:
parent
5fc806823e
commit
db84851e27
@ -149,11 +149,9 @@ var PresentationMode = {
|
|||||||
// Presentation Mode, by waiting until fullscreen mode is disabled.
|
// Presentation Mode, by waiting until fullscreen mode is disabled.
|
||||||
// Note: This is only necessary in non-Mozilla browsers.
|
// Note: This is only necessary in non-Mozilla browsers.
|
||||||
setTimeout(function exitPresentationModeTimeout() {
|
setTimeout(function exitPresentationModeTimeout() {
|
||||||
|
this.active = false;
|
||||||
PDFView.setScale(this.args.previousScale);
|
PDFView.setScale(this.args.previousScale);
|
||||||
PDFView.page = page;
|
PDFView.page = page;
|
||||||
// Keep Presentation Mode active until the page is scrolled into view,
|
|
||||||
// to prevent issues in non-Mozilla browsers.
|
|
||||||
this.active = false;
|
|
||||||
this.args = null;
|
this.args = null;
|
||||||
}.bind(this), 0);
|
}.bind(this), 0);
|
||||||
|
|
||||||
|
@ -90,18 +90,22 @@ select {
|
|||||||
|
|
||||||
:-webkit-full-screen .page {
|
:-webkit-full-screen .page {
|
||||||
margin-bottom: 100%;
|
margin-bottom: 100%;
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
:-moz-full-screen .page {
|
:-moz-full-screen .page {
|
||||||
margin-bottom: 100%;
|
margin-bottom: 100%;
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
:-ms-fullscreen .page {
|
:-ms-fullscreen .page {
|
||||||
margin-bottom: 100% !important;
|
margin-bottom: 100% !important;
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
:fullscreen .page {
|
:fullscreen .page {
|
||||||
margin-bottom: 100%;
|
margin-bottom: 100%;
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
:-webkit-full-screen a:not(.internalLink) {
|
:-webkit-full-screen a:not(.internalLink) {
|
||||||
|
@ -283,9 +283,11 @@ var PDFView = {
|
|||||||
if (!currentPage) {
|
if (!currentPage) {
|
||||||
return;
|
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;
|
currentPage.width * currentPage.scale;
|
||||||
var pageHeightScale = (this.container.clientHeight - VERTICAL_PADDING) /
|
var pageHeightScale = (this.container.clientHeight - vPadding) /
|
||||||
currentPage.height * currentPage.scale;
|
currentPage.height * currentPage.scale;
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case 'page-actual':
|
case 'page-actual':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user