summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-10-04 21:49:44 +0200
committerqsm-odoo <qsm@odoo.com>2016-10-04 21:49:44 +0200
commitb970eaac1515713b13fa090d2f255739e29c23f8 (patch)
tree1a0264c7bffea6eec405f9e5413c18c2fc0238ef /addons/website/static/src/js/website.editor.js
parent9337c7d4e284913505b18a77cc72789cc5650016 (diff)
[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.
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js2
1 files changed, 1 insertions, 1 deletions
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);
}
}