From 54e44ef4e20029da95bd34e26fd640f4b7ed5809 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 6 Nov 2014 19:19:14 +0100 Subject: [PATCH] add missing condition for recalculating scale --- js/reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index 312d5d1..a6bd81a 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1471,7 +1471,7 @@ // No point in calculating scale if the only possible // result is 1 - if( config.minScale !== 1 || config.maxScale !== 1 ) { + if( scale !== -1 || config.minScale !== 1 || config.maxScale !== 1 ) { // Determine scale of content to fit within available space scale = Math.min( size.presentationWidth / size.width, size.presentationHeight / size.height );