[FIX] web: avoid long menu dropdown overflow

The Actions/Print dropdowns may overflow the screen in case of very long
lists of menu entries, when based solely on the default BS4 styles for
`dropdown-menu`.

The `o_dropdown_menu` class forces a vertical limit and a scrollbar when
this happens, and should be applied to those control-panel dropdowns to
prevent this UI glitch.

See also 1c1c0897e8 which adapted
dropdowns to BS4.

closes odoo/odoo#31251
This commit is contained in:
Olivier Dony
2019-02-19 14:56:11 +00:00
parent 6b7f1ef091
commit 3e5ab60cf2
+1 -1
View File
@@ -341,7 +341,7 @@
<t t-raw="item.label"/>
</a>
</t>
<div class="dropdown-menu" role="menu">
<div class="dropdown-menu o_dropdown_menu" role="menu">
<t t-foreach="widget.items[section.name]" t-as="item">
<t t-if="section.name == 'files'">
<t t-set="item.title">