From: vincent@cubedesigners.com Date: Mon, 19 Feb 2018 10:36:47 +0000 (+0000) Subject: fix #1951 @0:50 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=87a8c73de28f2bc56ddcf4185a3431d08e8f1842;p=cubeextranet.git fix #1951 @0:50 --- 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;