aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-29 13:30:56 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-29 13:30:56 +0200
commit2ac0a55ccf0e8f881ff48f3500865bff37ec6fa3 (patch)
treeef03a7fcf6035e8982e8fd527ef28a3d3eb7a5d1 /js
parenteec14b9c9200abda683bc8e532d1e6500f0a652d (diff)
downloadfreenode-live-2017-presentation-2ac0a55ccf0e8f881ff48f3500865bff37ec6fa3.tar
freenode-live-2017-presentation-2ac0a55ccf0e8f881ff48f3500865bff37ec6fa3.tar.gz
ensure pdf pages are never zero-height
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 4e8f9f2..6e6c12b 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -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' ) ) {