]> _ Git - fluidbook-html5.git/commitdiff
fix #2112 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 20 Jul 2018 10:03:37 +0000 (12:03 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 20 Jul 2018 10:03:37 +0000 (12:03 +0200)
js/libs/fluidbook/fluidbook.links.js

index 7262a087cc8ee6a1e3da4072435bbbf2754b0be9..45e54d435f83e56ee113e311034a8dd48be0b2c3 100644 (file)
@@ -384,7 +384,7 @@ FluidbookLinks.prototype = {
             var h = $(this).outerHeight();
             var iw = w * $this.fluidbook.resize.bookScale;
             var ih = h * $this.fluidbook.resize.bookScale;
-            $("iframe").attr("width", iw)
+            $(this).find("iframe").attr("width", iw)
                 .attr('height', ih)
                 .css({width: iw, height: ih, transform: 'scale(' + (1 / $this.fluidbook.resize.bookScale) + ')'});
         });