fix here too
This commit is contained in:
parent
b070cfc9b0
commit
5361e39337
@ -7720,7 +7720,9 @@
|
|||||||
}
|
}
|
||||||
return $.asap((function() {
|
return $.asap((function() {
|
||||||
if (isVideo) {
|
if (isVideo) {
|
||||||
return el.videoHeight || el.naturalHeight;
|
return el.videoHeight;
|
||||||
|
} else {
|
||||||
|
return el.naturalHeight;
|
||||||
}
|
}
|
||||||
}), function() {
|
}), function() {
|
||||||
return ImageExpand.completeExpand(post);
|
return ImageExpand.completeExpand(post);
|
||||||
|
|||||||
@ -7739,7 +7739,9 @@
|
|||||||
}
|
}
|
||||||
return $.asap((function() {
|
return $.asap((function() {
|
||||||
if (isVideo) {
|
if (isVideo) {
|
||||||
return el.videoHeight || el.naturalHeight;
|
return el.videoHeight;
|
||||||
|
} else {
|
||||||
|
return el.naturalHeight;
|
||||||
}
|
}
|
||||||
}), function() {
|
}), function() {
|
||||||
return ImageExpand.completeExpand(post);
|
return ImageExpand.completeExpand(post);
|
||||||
|
|||||||
@ -117,7 +117,7 @@ ImageExpand =
|
|||||||
el.src = src or post.file.URL
|
el.src = src or post.file.URL
|
||||||
position = if isVideo and Conf['Show Controls'] then thumb.parentNode else thumb
|
position = if isVideo and Conf['Show Controls'] then thumb.parentNode else thumb
|
||||||
$.after position, el unless el is position.nextSibling
|
$.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
|
ImageExpand.completeExpand post
|
||||||
|
|
||||||
completeExpand: (post) ->
|
completeExpand: (post) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user