[FIX] website: set the correct height for welcome message

Commit 48a1eaf792 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.
This commit is contained in:
qsm-odoo
2016-10-04 21:49:44 +02:00
parent 9337c7d4e2
commit b970eaac15
@@ -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);
}
}