瀏覽代碼

force layout after configuration changes

Hakim El Hattab 11 年之前
父節點
當前提交
d2b6ed4726
共有 2 個文件被更改,包括 4 次插入5 次删除
  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();
+
 	}
 
 	/**

文件差異過大導致無法顯示
+ 1 - 1
js/reveal.min.js


部分文件因文件數量過多而無法顯示