diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-08-31 18:11:09 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-08-31 18:57:12 +0200 |
| commit | 4bc79da943c71e762e1f6dedbe3a641042bfef3f (patch) | |
| tree | 33a628e7a4b5d07221e08daf3af46b4f2d83de0f /addons/web/static/src | |
| parent | 7253b55f41484fb10810ea32351fbb185906856a (diff) | |
[FIX] website, *: avoid top menu flickering
* portal, web
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/core/dom.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/core/dom.js b/addons/web/static/src/js/core/dom.js index 9280b9a0884..f8a04f9b467 100644 --- a/addons/web/static/src/js/core/dom.js +++ b/addons/web/static/src/js/core/dom.js @@ -409,7 +409,7 @@ return { }, 0); if (maxWidth - menuItemsWidth >= -0.001) { - return + return; } var $dropdownMenu = $('<ul/>', {class: 'dropdown-menu'}); @@ -422,7 +422,7 @@ return { menuItemsWidth += computeFloatOuterWidthWithMargins($extraItemsToggle[0]); do { menuItemsWidth -= computeFloatOuterWidthWithMargins($items.eq(--nbItems)[0]); - } while (menuItemsWidth > maxWidth); + } while (!(maxWidth - menuItemsWidth >= -0.001)); var $extraItems = $items.slice(nbItems).detach(); $extraItems.removeClass('nav-item'); |
