From 2d3539bd42dd519755a35e2db9ea944e099e521c Mon Sep 17 00:00:00 2001 From: vinot <g.vinot@ville-montrouge.fr> Date: Mon, 29 Jun 2015 13:00:35 +0200 Subject: [PATCH] fix bug bloc du a l'iframe --- library/ZendAfi/View/Helper/PremierChapitre/Frame.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/library/ZendAfi/View/Helper/PremierChapitre/Frame.php b/library/ZendAfi/View/Helper/PremierChapitre/Frame.php index e07715bbbc4..d488ddaff0d 100644 --- a/library/ZendAfi/View/Helper/PremierChapitre/Frame.php +++ b/library/ZendAfi/View/Helper/PremierChapitre/Frame.php @@ -33,14 +33,13 @@ class ZendAfi_View_Helper_PremierChapitre_Frame extends ZendAfi_View_Helper_Prem if (!$pc) return $html; } else return $html; - $w = 700; $h = 700; - if (!empty($preferences['maxWidth']) && $preferences['maxWidth'] < $w) $w = $preferences['maxWidth']; + $h = 700; if (!empty($preferences['maxHeight']) && $preferences['maxHeight'] < $h) $h = $preferences['maxHeight']; $frm_attribs = ['id' => 'pc_frame', 'class' => 'iframe_premierchapitre', - 'style' => 'width:'.$w.'px; height:'.$h.'px; border:none;', + 'style' => 'width:100%; height:'.$h.'px; border:none;', 'src' => $pc->getUrl()]; - return $this->_tag('iframe',null,$frm_attribs); + return $this->_tag('iframe','',$frm_attribs); } } ?> \ No newline at end of file -- GitLab