From 1c6990d20fecf199810848e1a43f10205b4078a8 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 10 Sep 2015 09:30:57 +0200 Subject: [PATCH] fix pdf print when showNotes is disabled --- css/print/pdf.css | 2 +- js/reveal.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/css/print/pdf.css b/css/print/pdf.css index 834018bd..f509d5b5 100644 --- a/css/print/pdf.css +++ b/css/print/pdf.css @@ -157,7 +157,7 @@ ul, ol, div, p { } /* Display slide speaker notes when 'showNotes' is enabled */ -.reveal .speaker-notes { +.reveal .speaker-notes-pdf { display: block; width: 100%; max-height: none; diff --git a/js/reveal.js b/js/reveal.js index e517b33f..ae682ac8 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -580,8 +580,9 @@ if( notes ) { var notesElement = document.createElement( 'div' ); notesElement.classList.add( 'speaker-notes' ); + notesElement.classList.add( 'speaker-notes-pdf' ); notesElement.innerHTML = notes; - notesElement.style.bottom = 40 - ( ( pageHeight - contentHeight ) / 2 ) + 'px'; + notesElement.style.bottom = ( 40 - top ) + 'px'; slide.appendChild( notesElement ); } }