fix here too

This commit is contained in:
ccd0 2014-04-06 19:58:42 -07:00
parent b070cfc9b0
commit 5361e39337
3 changed files with 7 additions and 3 deletions

View File

@ -7720,7 +7720,9 @@
}
return $.asap((function() {
if (isVideo) {
return el.videoHeight || el.naturalHeight;
return el.videoHeight;
} else {
return el.naturalHeight;
}
}), function() {
return ImageExpand.completeExpand(post);

View File

@ -7739,7 +7739,9 @@
}
return $.asap((function() {
if (isVideo) {
return el.videoHeight || el.naturalHeight;
return el.videoHeight;
} else {
return el.naturalHeight;
}
}), function() {
return ImageExpand.completeExpand(post);

View File

@ -117,7 +117,7 @@ ImageExpand =
el.src = src or post.file.URL
position = if isVideo and Conf['Show Controls'] then thumb.parentNode else thumb
$.after position, el unless el is position.nextSibling
$.asap (-> if isVideo then el.videoHeight or el.naturalHeight), ->
$.asap (-> if isVideo then el.videoHeight else el.naturalHeight), ->
ImageExpand.completeExpand post
completeExpand: (post) ->