]> _ Git - fluidbook-html5.git/commitdiff
#2215
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 5 Sep 2018 15:26:54 +0000 (17:26 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 5 Sep 2018 15:26:54 +0000 (17:26 +0200)
js/libs/fluidbook/fluidbook.menu.js

index 377dd3d071d7f8838d1cf54847e567dcc7e98117..b7eca1e45a20e2a2ee09d162ecfcbc1cd403a457 100644 (file)
@@ -640,8 +640,11 @@ FluidbookMenu.prototype = {
                     y = 0;
                 } else {
                     forceHeight = true;
-
-                    s = Math.min(2, w / nw, h / nh);
+                    var ms = parseFloat(m.find('iframe').data('scale'));
+                    if (isNaN(ms)) {
+                        ms = 2;
+                    }
+                    s = Math.min(ms, w / nw, h / nh);
                     if (iframe.is('img') || fullscreen) {
                         s = Math.min(1, s);
                     }
@@ -676,10 +679,6 @@ FluidbookMenu.prototype = {
                     });
                 }
 
-                m.find('.multimediaScale').css({width: nw, height: nh, overflow: 'hidden'}).transform({
-                    scale: [s, s],
-                    origin: [0, 0]
-                }).css('text-align', 'left');
                 m.find('.multimediaScale').css({width: nw, height: nh, overflow: 'hidden'}).transform({
                     scale: [s, s],
                     origin: [0, 0]