summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/form
diff options
context:
space:
mode:
authorfw-bot <otis@odoo.com>2019-10-22 11:39:16 +0000
committerfw-bot <otis@odoo.com>2019-10-31 11:06:51 +0000
commitd019c002a743d30932fc4a19e56f7ab90f1836f1 (patch)
treef41c645ae86540f1cdf8122d8e788af50b2df6df /addons/web/static/src/js/views/form
parentf2a16187582ed697ffeea1522e4f0c745bf77016 (diff)
[FIX] web: fix form view "More" button
In form views, when the window size is too small, a "More" button appears and it should contain the overflow buttons. On all browsers, the "More" dropdown doesn't contain the expected amount of buttons, so it is shifted on the second line. Before this commit: - The "More" dropdown doesn't contain the expected amount of buttons, so it is shifted on the second line. After this commit: - The "More" dropdown contains the expected amount of buttons and it is not shifted on the second line anymore. OPW-2079694 X-original-commit: 2bda8230fba07a229fcda77a1528694a0e317917
Diffstat (limited to 'addons/web/static/src/js/views/form')
-rw-r--r--addons/web/static/src/js/views/form/form_renderer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/form/form_renderer.js b/addons/web/static/src/js/views/form/form_renderer.js
index e1395eebb9a..c064f67dcef 100644
--- a/addons/web/static/src/js/views/form/form_renderer.js
+++ b/addons/web/static/src/js/views/form/form_renderer.js
@@ -457,7 +457,7 @@ var FormRenderer = BasicRenderer.extend({
* @returns {integer}
*/
_renderButtonBoxNbButtons: function () {
- return [2, 2, 4, 6][config.device.size_class] || 7;
+ return [2, 2, 2, 4][config.device.size_class] || 7;
},
/**
* @private