diff options
| author | Pierre Paridans <app@odoo.com> | 2019-09-20 14:11:28 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2019-09-24 07:50:38 +0000 |
| commit | dd9d6d0fac6ffc667b2e897434793db45ea201cc (patch) | |
| tree | 3cab16808f0f5576807bd75b59f0243ccf78be5d /doc/reference/javascript_cheatsheet.rst | |
| parent | 1709fb99314c8b7b0ceacdc8260cb3ca6b0a0afe (diff) | |
[FIX] web: crash when resizing on tablet
When having a long systray (icons from different apps, mode debug,
multi-company...) the resize of the window can trigger a crash for apps
that have not too much top-level menus (e.g. Contacts).
This also happens when loading those apps.
Steps to reproduce (on an iPad, portrait):
* use a Runbot with all modules installed (12.0+)
* activate "debug mode"
* ensure that the menu/systray bar is quite full
* open the "Contacts" app
=> traceback with a "cannot call getBoundingClientRect of undefined"
error
The reason is that the resize's callback iterate over the systray/menu
items to find which one should be folded behind a "more" ("+") menu
item.
Sadly in some cases (combination of screen width, systray size, app's
number of menus) it can lead to a traceback.
This commit ensures that when looping for menu items, we don't try to
reach an non-existing item.
closes odoo/odoo#37329
X-original-commit: odoo/odoo@d7bae0329990171710acf2d9c0d4d9579cba2c0e
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Co-authored-by: Romeo Fragomeli <rfr@odoo.com>
Diffstat (limited to 'doc/reference/javascript_cheatsheet.rst')
0 files changed, 0 insertions, 0 deletions
