From d2b6ed4726adacb3ead8784e8ac60175145142f0 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 27 Feb 2013 17:17:32 -0500 Subject: force layout after configuration changes --- js/reveal.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index b218449..d425a87 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -313,10 +313,6 @@ var Reveal = (function(){ // Updates the presentation to match the current configuration values configure(); - // Force an initial layout, will thereafter be invoked as the window - // is resized - layout(); - // Read the initial hash readURL(); @@ -397,6 +393,9 @@ var Reveal = (function(){ } } + // Force a layout to make sure the current config is accounted for + layout(); + } /** -- cgit v1.2.3