1
0
Fork 0

print-pdf layout slide contents to fit stretch elements

layout() and thereby layoutSlideContents() is never invoked
when isPrintingPdf() is true so stretch elements are not
sized correctly.
This is ensured now by invoking the layoutSlideContents
from SetupPDF(). There seems no need to scale down
like in other PR's is suggested.
This commit is contained in:
Manuel Riezebosch 2017-03-14 14:39:31 +01:00
parent 7e6fb9ec87
commit 34f3773bf0
1 changed files with 3 additions and 0 deletions

View File

@ -620,6 +620,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 ) {