mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-01 20:30:29 +02:00
ensure pdf pages are never zero-height
This commit is contained in:
@@ -119,6 +119,7 @@ ul, ol, div, p {
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
box-sizing: border-box !important;
|
||||
min-height: 1px;
|
||||
|
||||
opacity: 1 !important;
|
||||
|
||||
|
@@ -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' ) ) {
|
||||
|
Reference in New Issue
Block a user