aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-04-07 09:54:39 +0200
committerGitHub <noreply@github.com>2017-04-07 09:54:39 +0200
commit30f2af0ac512534e7d66ed60514f07f14a8bb6d7 (patch)
tree4b043df571fd4350d84c0950316ffa20f2110090
parent8ec5e00062e13cb2dff6750d5ba152567af30653 (diff)
parent34f3773bf0e09e0300a5fcdf6926b3d4699aa71f (diff)
downloadfreenode-live-2017-presentation-30f2af0ac512534e7d66ed60514f07f14a8bb6d7.tar
freenode-live-2017-presentation-30f2af0ac512534e7d66ed60514f07f14a8bb6d7.tar.gz
Merge pull request #1844 from riezebosch/pdf-print-stretch
print-pdf layout slide contents to fit stretch elements
-rw-r--r--js/reveal.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index b3a634b..c58f2d6 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -633,6 +633,9 @@
document.body.style.width = pageWidth + 'px';
document.body.style.height = pageHeight + 'px';
+ // Make sure stretch elements fit on slide
+ layoutSlideContents(slideWidth, slideHeight);
+
// Add each slide's index as attributes on itself, we need these
// indices to generate slide numbers below
toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ).forEach( function( hslide, h ) {