From: Vincent Vanwaelscappel Date: Mon, 14 Jan 2019 11:39:50 +0000 (+0100) Subject: wip #2506 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d3fe46adad99caf5ad0456251a47f9e36110ca88;p=fluidbook-html5.git wip #2506 @1.5 --- diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index 5a60fa7a..76c8b866 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -197,8 +197,15 @@ FluidbookMenu.prototype = { var t = $("#view .iframeContainer").data('type'); $("#view").find('.iframeHolder,.content,.mview').attr('data-type', t); - + $("#view .iframeContainer iframe").on('load', function () { + try { + var cw = $(this).get(0).contentWindow; + cw.document.style.maxWidth = '100%'; + cw.document.style.overflow = 'auto'; + }catch (e) { + + } $this.resize(); }); },