Merge pull request #1844 from riezebosch/pdf-print-stretch
print-pdf layout slide contents to fit stretch elementsedit
commit
30f2af0ac5
|
@ -633,6 +633,9 @@
|
||||||
document.body.style.width = pageWidth + 'px';
|
document.body.style.width = pageWidth + 'px';
|
||||||
document.body.style.height = pageHeight + '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
|
// Add each slide's index as attributes on itself, we need these
|
||||||
// indices to generate slide numbers below
|
// indices to generate slide numbers below
|
||||||
toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ).forEach( function( hslide, h ) {
|
toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ).forEach( function( hslide, h ) {
|
||||||
|
|
Loading…
Reference in New Issue