From 256e16f4d22ab7213b6d2bb88b9d3387290b6273 Mon Sep 17 00:00:00 2001 From: "Guillaume (gdi)" Date: Tue, 18 Apr 2023 08:46:58 +0000 Subject: [PATCH] [FIX] website: remove horizontal scrollbar on mega menus Since [this commit], a horizontal scrollbar appears on mega menus. This is because Bootstrap position the dropdown automatically and the mega menus are a bit shifted on the right (due to a `translate3d` added by dynamic position of popper). This commit fixes the problem by removing dynamic positioning for mega menus. Steps to reproduce: - Have a system setting that enlarges the texts size or zoom the page - Have a mega menu - Open the mega menu => There is a horizontal scrollbar. [this commit]: https://github.com/odoo/odoo/commit/8689241f86e2d4ddb4e4510951f92b80e115b914 task-3133137 closes odoo/odoo#118842 Signed-off-by: loco-odoo --- addons/website/views/website_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index 4aaaebb54a8..575093d3154 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -14,7 +14,7 @@
  • + data-bs-toggle="dropdown" href="#" t-att-data-bs-display="'static' if submenu.is_mega_menu else None">