Hello,

I got the 3.x-dev-Version working with Modernizer 3.3.1 and JQuery 1.8.3.

On Page 2&3 I have the problem, when I zoom in and out the complete "Magazin-View-Area" get lost. This effect exist only on page 2&3. On all the other pages zoom in and out works fine. I tried several Browser (IE, FF, Chrome, Opera), but the results are identically.

Have somebody a solution?

Thanks a lot.

Comments

bigpun6681 created an issue. See original summary.

bigpun6681’s picture

Nobody have an idea?

kevinsiji’s picture

Facing same issue, trying to figure out what is wrong. Anyway there is no js errors.

rom84’s picture

Hello,

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();
}

anybody’s picture

Thank you very much for your comment, rom84.

Could you please try the following short version:

function turnjs_magazines_get_imageratio($image) {
  return $image.prop('naturalWidth') / $image.prop('naturalHeight');
}
rom84’s picture

Yes,

It's great solution. It's possible to include at the next update module.

Thanks,
Romain

anybody’s picture

I'd like to have some feedback from bigpun6681 or kevinsiji to mark this fixed.

bigpun6681’s picture

Sorry,

I'm a little bit late. But for me, it works.

Thanks a lot.

anybody’s picture

Status: Active » Fixed

  • Anybody committed a708b11 on 7.x-3.x
    Issue #2708369 by bigpun6681, Anybody, kevinsiji, rom84: Zoom out on...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.