Ver Fonte

make sure stretch works with video

Hakim El Hattab há 10 anos atrás
pai
commit
0a021845df
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 2 - 2
js/reveal.js

@@ -1081,8 +1081,8 @@ var Reveal = (function(){
 
 			// Consider the aspect ratio of media elements
 			if( /(img|video)/gi.test( element.nodeName ) ) {
-				var nw = element.naturalWidth,
-					nh = element.naturalHeight;
+				var nw = element.naturalWidth || element.videoWidth,
+					nh = element.naturalHeight || element.videoHeight;
 
 				var es = Math.min( width / nw, remainingHeight / nh );
 

Diff do ficheiro suprimidas por serem muito extensas
+ 1 - 1
js/reveal.min.js


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff