Closed (fixed)
Project:
Turn.js Magazines [D7]
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2016 at 11:19 UTC
Updated:
17 Jul 2017 at 11:30 UTC
Jump to comment: Most recent
Comments
Comment #2
bigpun6681 commentedNobody have an idea?
Comment #3
kevinsiji commentedFacing same issue, trying to figure out what is wrong. Anyway there is no js errors.
Comment #4
rom84 commentedHello,
For the issue, i have found a solution in Js file
The problem is that the size (height) is set to 0 and as a result, it is no longer displayed.
You must recover the naturalHeight property
In the function turnjs_magazines_get_imageratio($images)
function turnjs_magazines_get_imageratio($image) {
var img = $image;
var image_load = new Image();
image_load.src = img.attr("src");
width_img = image_load.naturalWidth;
height_img = image_load.naturalHeight;
ratio = width_img / height_img;
return ratio;
// return $image.width() / $image.height();
}
Comment #5
anybodyThank you very much for your comment, rom84.
Could you please try the following short version:
Comment #6
rom84 commentedYes,
It's great solution. It's possible to include at the next update module.
Thanks,
Romain
Comment #7
anybodyI'd like to have some feedback from bigpun6681 or kevinsiji to mark this fixed.
Comment #8
bigpun6681 commentedSorry,
I'm a little bit late. But for me, it works.
Thanks a lot.
Comment #9
anybody