additional fix for empty pages in pdf exports #1804
This commit is contained in:
parent
d4133f0160
commit
934c2e9730
|
@ -132,7 +132,7 @@ ul, ol, div, p {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Slide backgrounds are placed inside of their slide when exporting to PDF */
|
/* Slide backgrounds are placed inside of their slide when exporting to PDF */
|
||||||
.reveal section .slide-background {
|
.reveal .slide-background {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
|
@ -656,7 +656,7 @@
|
||||||
// Reduce total height by 1px so that the page ends before
|
// Reduce total height by 1px so that the page ends before
|
||||||
// the page, otherwise the page's 'page-break-after' will
|
// the page, otherwise the page's 'page-break-after' will
|
||||||
// land on the wrong page
|
// land on the wrong page
|
||||||
page.style.height = ( ( pageHeight * numberOfPages ) - 1 ) + 'px';
|
page.style.height = ( ( pageHeight - 1 ) * numberOfPages ) + 'px';
|
||||||
|
|
||||||
slide.parentNode.insertBefore( page, slide );
|
slide.parentNode.insertBefore( page, slide );
|
||||||
page.appendChild( slide );
|
page.appendChild( slide );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user