From 8eb47d816528752d1dd602cb26fe7d0b71d54d51 Mon Sep 17 00:00:00 2001 From: jvm-odoo <jvm@odoo.com> Date: Thu, 9 Jul 2020 08:03:51 +0000 Subject: [PATCH] [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> --- addons/web/static/src/js/views/list/list_renderer.js | 1 + 1 file changed, 1 insertion(+) 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 246a83f18a03..7d75c2dc2bbb 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); -- GitLab