diff --git a/js/reveal.js b/js/reveal.js index 3267465..452c6bf 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -620,6 +620,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 ) {