Parcourir la source

force layout after configuration changes

Hakim El Hattab il y a 11 ans
Parent
commit
d2b6ed4726
2 fichiers modifiés avec 4 ajouts et 5 suppressions
  1. 3 4
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 3 - 4
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();
+
 	}
 
 	/**

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
js/reveal.min.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff