浏览代码

fix pdf print when showNotes is disabled

Hakim El Hattab 9 年之前
父节点
当前提交
1c6990d20f
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      css/print/pdf.css
  2. 2 1
      js/reveal.js

+ 1 - 1
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;

+ 2 - 1
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 );
 					}
 				}