$this.zoomLinkReset(true);
});
+ $(this.fluidbook).on('fluidbook.resize', function () {
+ $this.resize();
+ });
$(document).on('click', '#zoomPopupOverlay, #zoomPopupWrapper, #zoomPopupClose', function (e) {
$this.zoomLinkReset();
}, 200);
$(fluidbook).trigger('fluidbooklinksready');
$(fluidbook).trigger('fluidbook.links.ready');
+ this.resize();
},
});
},
+ resize: function () {
+ var $this = this;
+ $("#links .link.iframe").each(function () {
+ var w = $(this).outerWidth();
+ var h = $(this).outerHeight();
+ var iw = w * $this.fluidbook.resize.bookScale;
+ var ih = h * $this.fluidbook.resize.bookScale;
+ $("iframe").attr("width", iw)
+ .attr('height', ih)
+ .css({width: iw, height: ih, transform: 'scale(' + (1 / $this.fluidbook.resize.bookScale) + ')'});
+ });
+ },
+
}