]> _ Git - fluidbook-html5.git/commitdiff
wip #2441 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 4 Jan 2019 14:53:09 +0000 (15:53 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 4 Jan 2019 14:53:09 +0000 (15:53 +0100)
js/libs/fluidbook/fluidbook.menu.js

index 7fe421850dac62bd289d659a6eadbb36d4831cfd..2995573a5e3b0d10f9e86fc7f93131ed964bd316 100644 (file)
@@ -607,6 +607,9 @@ FluidbookMenu.prototype = {
                 break;
             case 'iframe':
                 w = ww * 0.8;
+                if (parseInt(this.fluidbook.datas.iframePopupMaxWidth) > 0) {
+                    w = Math.min(w, parseInt(this.fluidbook.datas.iframePopupMaxWidth));
+                }
                 h = hh * 0.8;
                 if (ww < 800) {
                     w = ww;