Skip to content
Snippets Groups Projects
Commit 94c9ded9 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'hotline#62244_tableau_de_bord_piwik_page_trop_courte' into 'hotline-master'

hotline #62244 dynamically adapt piwik iframe to window

See merge request !2266
parents 36f8dd3e 66b0ade0
Branches
Tags
4 merge requests!2334Master,!2269Master,!2268Hotline master,!2266hotline #62244 dynamically adapt piwik iframe to window
Pipeline #2162 passed with stage
in 19 minutes and 33 seconds
- ticket #62244 : Tableau de bord piwik: adaptation de l'iframe pour pouvoir naviguer dans la totalité du tableau de bord
\ No newline at end of file
<?php
Class_ScriptLoader::getInstance()
->addJQueryReady('var title = $(".modules h1");
var container_height = Math.round(window.innerHeight - title.position().top - title.height());
var container = $(".modules");
container.height(container_height);
$("iframe#piwik").height(container_height - title.height() - Math.round(container.css("padding-bottom").replace("px","")))');
if($this->error)
echo $this->tag('p', $this->error, ['class' => 'error']);
echo $this->tag('iframe', '', ['src' => $this->url,
'id' => 'piwik',
'frameborder' => '0',
'marginheight' => '0',
'marginwidth' => '0',
'width' => '100%',
'height' => '200%',
'scrolling' => 'no']);
'scrolling' => 'yes']);
?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment