[9.2.10] hauteur maxi non respectée
This commit is contained in:
parent
818d600dc8
commit
8beca81ae4
@ -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;
|
||||
if ( ($(window).width() / ratio) <= height) {
|
||||
$("header").height( $(window).width() / ratio );
|
||||
}
|
||||
$("header").css("line-height", $(window).width() / ratio + "px");
|
||||
}
|
||||
}).trigger("resize");
|
||||
|
Loading…
Reference in New Issue
Block a user