summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/list
diff options
context:
space:
mode:
authorjvm-odoo <jvm@odoo.com>2020-07-09 08:03:51 +0000
committerjvm-odoo <jvm@odoo.com>2020-07-10 10:48:19 +0000
commit8eb47d816528752d1dd602cb26fe7d0b71d54d51 (patch)
tree2708f0bad0b4eefc6ed310d02de8b08dfcbadaa1 /addons/web/static/src/js/views/list
parent3783b3855d762d0c0af9d82068bd33b898388c3b (diff)
[FIX] web: fix optional columns list dropdown
Issue - Accounting > General ledger - Have 2-3 lines in the table I added filters to have them - Toggle optional columns: (...) on the right There is an y scroll but you can't scroll more than half of the scrollbar. Cause The cause is that the dropdown height is greater than the table height. Solution Use data-display: static this way the element doesn't scroll with parent scroll and scrolling is working as expected on the dropdown OPW-2291531 closes odoo/odoo#54320 X-original-commit: 9afd7b7ec7461a47ea8d7fbbd4884c24e1af9865 Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/list')
-rw-r--r--addons/web/static/src/js/views/list/list_renderer.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/list/list_renderer.js b/addons/web/static/src/js/views/list/list_renderer.js
index 246a83f18a0..7d75c2dc2bb 100644
--- a/addons/web/static/src/js/views/list/list_renderer.js
+++ b/addons/web/static/src/js/views/list/list_renderer.js
@@ -981,6 +981,7 @@ var ListRenderer = BasicRenderer.extend({
'href': "#",
'role': "button",
'data-toggle': "dropdown",
+ 'data-display': "static",
'aria-expanded': false,
});
$a.appendTo($optionalColumnsDropdown);