]> _ Git - fluidbook-v3.git/commitdiff
wip #3375 @2
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 14 Apr 2020 17:12:00 +0000 (17:12 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 14 Apr 2020 17:12:00 +0000 (17:12 +0000)
framework/application/views/helpers/BackgroundBlock.php
js/002-common.js
less/002-common.less

index dead3212eaef6214f1730c35cce44dcd508062ab..3be23e454ec1373f4976ee733ffe80db67d23c87 100644 (file)
@@ -35,7 +35,7 @@ class Fluidbook_View_Helper_BackgroundBlock extends CubeIT_View_Helper_Abstract
                 // Image will be cropped to 900px wide so ensure that we have 45% extra and then determine the target height\r
                 $target_height = ($mobile_max_width / 0.55) * $image_ratio;\r
 \r
-                if (stripos($image_path, '.oam') !== false) {\r
+                if (stripos($image_path, '.oam') !== false || stripos($image_path, '.zip') !== false) {\r
                     if (!isset($data['backgroundmobileimage'])) {\r
                         $pict = $this->view->imageCms($image_path);\r
                     } else {\r
index 8c16c807f2d46039d032bb5155dad0cf77188649..c06956559a79c80f8d7660b9996897b051f3847b 100644 (file)
@@ -115,7 +115,7 @@ function resize() {
 }\r
 \r
 function resize_oam() {\r
-    $('iframe.oam').each(function () {\r
+    $('iframe.oam,iframe.zip').each(function () {\r
         var p = $(this).parent();\r
         var pw = $(p).outerWidth();\r
         var ph = $(p).outerHeight();\r
index 2d3814905d46d9cfe5cff340c304f676e4853710..c7a36697a89ad7812716b290d239e034b5aa47a8 100644 (file)
@@ -144,7 +144,7 @@ a {
       width: 100%;\r
       height: 100%;\r
 \r
-      iframe.oam {\r
+      iframe.oam, iframe.zip {\r
         position: absolute;\r
       }\r
     }\r
@@ -162,7 +162,7 @@ a {
       }\r
     }\r
 \r
-    iframe.oam {\r
+    iframe.oam, iframe.zip {\r
       overflow: hidden;\r
       pointer-events: none;\r
       transform-origin: 0 0 0;\r