ensure pdf pages are never zero-height

This commit is contained in:
Hakim El Hattab committed 2014-04-29 13:30:56 +02:00
1 parent eec14b9c92
commit 2ac0a55ccf
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -468,7 +468,7 @@
top = ( pageHeight - slideHeight ) / 2;
var contentHeight = getAbsoluteHeight( slide );
var numberOfPages = Math.ceil( contentHeight / pageHeight );
var numberOfPages = Math.max( Math.ceil( contentHeight / pageHeight ), 1 );
// Center slides vertically
if( numberOfPages === 1 && config.center || slide.classList.contains( 'center' ) ) {