[FIX] web: consider the body when there is no wrapwrap

Part of https://github.com/odoo/odoo/pull/29442
task-1932066
This commit is contained in:
qsm-odoo
2019-02-26 17:02:59 +00:00
parent 7b960c66bb
commit 3eb9269308
@@ -163,6 +163,12 @@ var PublicRoot = publicWidget.RootWidget.extend(ServiceProviderMixin, {
if ($from === undefined) {
$from = this.$('#wrapwrap');
if (!$from.length) {
// TODO Remove this once all frontend layouts possess a
// #wrapwrap element (which is necessary for those pages to be
// adapted correctly if the user installs website).
$from = this.$el;
}
}
if (options === undefined) {
options = {};