Skip to content
Snippets Groups Projects
Commit 6bf6688d authored by Romain Derie's avatar Romain Derie
Browse files

[FIX] portal, sale: scroll correctly if fixed header


Depending of the configuration, on the portal, anchor do not consider the
header, so a part of the text is hidden by the navbar.

task-2290213

closes odoo/odoo#60415

X-original-commit: 2cd9a9d12f4cd7352430c166145a7488af0c120c
Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: default avatarRomain Derie <rdeodoo@users.noreply.github.com>
parent 09b6010d
No related branches found
No related tags found
No related merge requests found
......@@ -532,7 +532,7 @@
:pid : identifier of the partner signing the token
-->
<template id="message_thread">
<div id="discussion" class="d-print-none o_portal_chatter o_not_editable p-0"
<div id="discussion" data-anchor="true" class="d-print-none o_portal_chatter o_not_editable p-0"
t-att-data-token="token" t-att-data-res_model="object._name" t-att-data-pid="pid" t-att-data-hash="hash" t-att-data-res_id="object.id" t-att-data-pager_step="message_per_page or 10" t-att-data-allow_composer="'0' if disable_composer else '1'">
</div>
</template>
......
......@@ -88,7 +88,9 @@ publicWidget.registry.SalePortalSidebar = PortalSidebar.extend({
}
break;
}
el.setAttribute('data-anchor', true);
});
this.trigger_up('widgets_start_request', {$target: $bsSidenav});
},
/**
* extract text of menu title for sidebar
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment