[9.2.10] hauteur maxi non respectée

This commit is contained in:
fredtempez 2019-11-12 21:46:57 +01:00
parent 818d600dc8
commit 8beca81ae4
1 changed files with 3 additions and 1 deletions

View File

@ -341,7 +341,9 @@ core.start = function() {
var heightpx = "<?php echo $this->getdata(['theme','header','height']);?>";
var height = heightpx.substr(0,heightpx.length-2);
var ratio = width / height;
$("header").height( $(window).width() / ratio );
if ( ($(window).width() / ratio) <= height) {
$("header").height( $(window).width() / ratio );
}
$("header").css("line-height", $(window).width() / ratio + "px");
}
}).trigger("resize");