From 8beca81ae4f4a5fcb94c38988a5f0c4cec0e1d54 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 12 Nov 2019 21:46:57 +0100 Subject: [PATCH] =?UTF-8?q?[9.2.10]=20hauteur=20=20maxi=20non=20respect?= =?UTF-8?q?=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.js.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core.js.php b/core/core.js.php index bede0273..06d21906 100755 --- a/core/core.js.php +++ b/core/core.js.php @@ -341,7 +341,9 @@ core.start = function() { var heightpx = "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");