fix pdf print when showNotes is disabled

This commit is contained in:
Hakim El Hattab 2015-09-10 09:30:57 +02:00
parent 5d39e8b8ce
commit 1c6990d20f
2 changed files with 3 additions and 2 deletions

View File

@ -157,7 +157,7 @@ ul, ol, div, p {
} }
/* Display slide speaker notes when 'showNotes' is enabled */ /* Display slide speaker notes when 'showNotes' is enabled */
.reveal .speaker-notes { .reveal .speaker-notes-pdf {
display: block; display: block;
width: 100%; width: 100%;
max-height: none; max-height: none;

View File

@ -580,8 +580,9 @@
if( notes ) { if( notes ) {
var notesElement = document.createElement( 'div' ); var notesElement = document.createElement( 'div' );
notesElement.classList.add( 'speaker-notes' ); notesElement.classList.add( 'speaker-notes' );
notesElement.classList.add( 'speaker-notes-pdf' );
notesElement.innerHTML = notes; notesElement.innerHTML = notes;
notesElement.style.bottom = 40 - ( ( pageHeight - contentHeight ) / 2 ) + 'px'; notesElement.style.bottom = ( 40 - top ) + 'px';
slide.appendChild( notesElement ); slide.appendChild( notesElement );
} }
} }