فهرست منبع

additional fix for empty pages in pdf exports #1804

Hakim El Hattab 7 سال پیش
والد
کامیت
d9dcff1503
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      css/print/pdf.css
  2. 1 1
      js/reveal.js

+ 1 - 1
css/print/pdf.css

@@ -132,7 +132,7 @@ ul, ol, div, p {
 }
 
 /* Slide backgrounds are placed inside of their slide when exporting to PDF */
-.reveal section .slide-background {
+.reveal .slide-background {
 	display: block !important;
 	position: absolute;
 	top: 0;

+ 1 - 1
js/reveal.js

@@ -656,7 +656,7 @@
 				// Reduce total height by 1px so that the page ends before
 				// the page, otherwise the page's 'page-break-after' will
 				// land on the wrong page
-				page.style.height = ( ( pageHeight * numberOfPages ) - 1 ) + 'px';
+				page.style.height = ( ( pageHeight - 1 ) * numberOfPages ) + 'px';
 
 				slide.parentNode.insertBefore( page, slide );
 				page.appendChild( slide );