]> _ Git - fluidbook-html5.git/commitdiff
Fix multimedia scale
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 18 Jun 2015 09:06:24 +0000 (09:06 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 18 Jun 2015 09:06:24 +0000 (09:06 +0000)
js/libs/fluidbook/fluidbook.resize.js

index 7bc423f2bcdb5c311349641b66512a9fe3acf7c8..178ecfd65ae43ca55d5c93190a241448378f3850 100644 (file)
@@ -219,10 +219,9 @@ FluidbookResize.prototype = {
             w = parseInt($(iframe).attr('width'));
             h = parseInt($(iframe).attr('height'));
 
-            var x = (w * s) - $(window).width();
-
             var s = Math.min(maxw / w, maxh / h);
-
+            var x = (w * s) - $(window).width();
+            
             $(this).transform({scale: s, translateX: x, origin: [0, 0]});
         });
     },