From f2d22c92380cf9254aaf8c9516be2f841f4676a3 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 14 Apr 2020 17:12:00 +0000 Subject: [PATCH] wip #3375 @2 --- framework/application/views/helpers/BackgroundBlock.php | 2 +- js/002-common.js | 2 +- less/002-common.less | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/application/views/helpers/BackgroundBlock.php b/framework/application/views/helpers/BackgroundBlock.php index dead321..3be23e4 100644 --- a/framework/application/views/helpers/BackgroundBlock.php +++ b/framework/application/views/helpers/BackgroundBlock.php @@ -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 $target_height = ($mobile_max_width / 0.55) * $image_ratio; - if (stripos($image_path, '.oam') !== false) { + if (stripos($image_path, '.oam') !== false || stripos($image_path, '.zip') !== false) { if (!isset($data['backgroundmobileimage'])) { $pict = $this->view->imageCms($image_path); } else { diff --git a/js/002-common.js b/js/002-common.js index 8c16c80..c069565 100644 --- a/js/002-common.js +++ b/js/002-common.js @@ -115,7 +115,7 @@ function resize() { } function resize_oam() { - $('iframe.oam').each(function () { + $('iframe.oam,iframe.zip').each(function () { var p = $(this).parent(); var pw = $(p).outerWidth(); var ph = $(p).outerHeight(); diff --git a/less/002-common.less b/less/002-common.less index 2d38149..c7a3669 100644 --- a/less/002-common.less +++ b/less/002-common.less @@ -144,7 +144,7 @@ a { width: 100%; height: 100%; - iframe.oam { + iframe.oam, iframe.zip { position: absolute; } } @@ -162,7 +162,7 @@ a { } } - iframe.oam { + iframe.oam, iframe.zip { overflow: hidden; pointer-events: none; transform-origin: 0 0 0; -- 2.39.5