pdf background size rounding error

edit
Hakim El Hattab 2014-04-29 10:46:58 +02:00
parent ebb9a689a0
commit eec14b9c92
1 changed files with 2 additions and 2 deletions

View File

@ -443,8 +443,8 @@
var slideSize = getComputedSlideSize( window.innerWidth, window.innerHeight ); var slideSize = getComputedSlideSize( window.innerWidth, window.innerHeight );
// Dimensions of the PDF pages // Dimensions of the PDF pages
var pageWidth = Math.round( slideSize.width * ( 1 + config.margin ) ), var pageWidth = Math.ceil( slideSize.width * ( 1 + config.margin ) ),
pageHeight = Math.round( slideSize.height * ( 1 + config.margin ) ); pageHeight = Math.ceil( slideSize.height * ( 1 + config.margin ) );
// Dimensions of slides within the pages // Dimensions of slides within the pages
var slideWidth = slideSize.width, var slideWidth = slideSize.width,