From 87a8c73de28f2bc56ddcf4185a3431d08e8f1842 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 19 Feb 2018 10:36:47 +0000 Subject: [PATCH] fix #1951 @0:50 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index b36c4aa74..77a8d4d81 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -21,6 +21,7 @@ class wsHTML5Link { public $video_width; public $video_service; public $inline; + public $in_popup = false; public $display_area; public $read_mode; public $infobulle; @@ -368,6 +369,7 @@ class htmlMultimediaPopupLink extends htmlMultimediaPopupImage { public function getAdditionnalContent() { $i = $this->_init; $i['inline'] = true; + $i['in_popup'] = true; $i['width'] = $i['video_width']; $i['height'] = $i['video_height']; @@ -874,9 +876,10 @@ class htmlMultimediaLink extends wsHTML5Link { $res = ''; } if ($this->_externalIframe !== false) { - $iw = $this->_config['width']; - $ih = $this->_config['height']; - $res = ''; + $s = $this->in_popup ? 1 : $this->getCssScale(); + $iw = $this->_config['width'] * $s; + $ih = $this->_config['height'] * $s; + $res = ''; } foreach ($this->_config['inject'] as $i) { @@ -932,7 +935,7 @@ class htmlMultimediaLink extends wsHTML5Link { $css .= $this->getCSSZIndex(); $css .= $this->getCSS(); $css .= '}'; - if ($this->_externalIframe !== false) { + if ($this->_externalIframe !== false && $this->in_popup) { $css .= '#l_' . $this->id . '>iframe{' . wsHTML5::writeCSSUA('transform', 'scale(' . $this->getCssScale() . ')') . '}'; } return $css; -- 2.39.5