diff --git a/library/ZendAfi/View/Helper/PremierChapitre/Frame.php b/library/ZendAfi/View/Helper/PremierChapitre/Frame.php index e07715bbbc484e17ef712a48952b4befe76e7dbd..d488ddaff0d145c1171589cde4a2b3475f4564f6 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