aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-01-25 10:43:26 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-01-25 10:46:03 +0100
commit953d302f8b3c1a5dfc430f2e34b67a81bc35c9d2 (patch)
tree514136184cd757fef32cb0b11daf2d59f7109a91 /js
parentd9dcff1503cb4e8043a2b434de3cc635914164cb (diff)
downloadfreenode-live-2017-presentation-953d302f8b3c1a5dfc430f2e34b67a81bc35c9d2.tar
freenode-live-2017-presentation-953d302f8b3c1a5dfc430f2e34b67a81bc35c9d2.tar.gz
adjust pdf margins instead of heights to fix #1804
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 95a4883..46ca50c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -605,7 +605,7 @@
slideHeight = slideSize.height;
// Let the browser know what page size we want to print
- injectStyleSheet( '@page{size:'+ pageWidth +'px '+ pageHeight +'px; margin: 0;}' );
+ injectStyleSheet( '@page{size:'+ pageWidth +'px '+ pageHeight +'px; margin: 0 0 -1px 0;}' );
// Limit the size of certain elements to the dimensions of the slide
injectStyleSheet( '.reveal section>img, .reveal section>video, .reveal section>iframe{max-width: '+ slideWidth +'px; max-height:'+ slideHeight +'px}' );
@@ -652,12 +652,7 @@
// so that no page ever flows onto another
var page = document.createElement( 'div' );
page.className = 'pdf-page';
-
- // Reduce total height by 1px so that the page ends before
- // the page, otherwise the page's 'page-break-after' will
- // land on the wrong page
- page.style.height = ( ( pageHeight - 1 ) * numberOfPages ) + 'px';
-
+ page.style.height = ( pageHeight * numberOfPages ) + 'px';
slide.parentNode.insertBefore( page, slide );
page.appendChild( slide );