make sure stretch works with video
This commit is contained in:
parent
74a5fb949d
commit
0a021845df
2 changed files with 4 additions and 4 deletions
|
@ -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 );
|
||||
|
||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue