]> _ Git - fluidbook-html5.git/commitdiff
wip #2506 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 14 Jan 2019 11:39:50 +0000 (12:39 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 14 Jan 2019 11:39:50 +0000 (12:39 +0100)
js/libs/fluidbook/fluidbook.menu.js

index 5a60fa7a738b1e2f165ff04ee17091a12f95f808..76c8b86654649379f34d2a5fc12747a7986ac410 100644 (file)
@@ -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();
         });
     },