23fe084c4c5ccac30619a733db9765e939057b7b
ISSUE: The width of menu items is computed (in 'initAutoMoreMenu') to check for overflow and fold extra items in a "+" dropdown. [1] When the page is not in cache yet, the width is computed while font is not loaded yet and the value obtained is not the same when font is already available [2] (e.g. if we go to another page). This explains why we get an additional folded item comparing [1] and [2]. The goal of this commit is to fix this behaviour by recomputing the width after font loading. IMPORTANT REMARK: When the code was overridden on 'initAutoMoreMenu', the idea was to update the menu as soon as the DOM is available and add adjustments after in this order: [A]- _adapt(); [B]- await _afterImagesLoading(...); _adapt(); But since it's not possible to prevent the changes in menu width after images are loaded, we remove the first update in [A] (This update has no effect in current code because it was placed after the "await..." in [B]). And we still start the updates on menu after image loading. task-2618929 closes odoo/odoo#78959 X-original-commit: 69b97d8e95da3efa62882228e79dc357e19e0fe6 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%