From b970eaac1515713b13fa090d2f255739e29c23f8 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 4 Oct 2016 21:49:44 +0200 Subject: [PATCH] [FIX] website: set the correct height for welcome message Commit 48a1eaf79273fbf40b4b0a55ed28d27382477450 adapt the welcome message on website so that it fits the page height. But this does only worked for large screens as the height was forced to main height... which is smaller than the default welcome message height on small screen. The fix only had to use min-height instead of height. --- addons/website/static/src/js/website.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index d1e71d064a2..5d2d7706560 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -216,7 +216,7 @@ base.ready().then(function () { var $wrap = $("#wrapwrap.homepage #wrap"); if ($wrap.length && $wrap.html().trim() === "") { var $welcome_message = $(qweb.render("website.homepage_editor_welcome_message")); - $welcome_message.css("height", $wrap.parent("main").height() - ($wrap.outerHeight(true) - $wrap.height())); + $welcome_message.css("min-height", $wrap.parent("main").height() - ($wrap.outerHeight(true) - $wrap.height())); $wrap.empty().append($welcome_message); } }