-
- Downloads
[FIX] web: dropdown in modal in RTL mode
Be in Right to left Open a m2o search more, to get onto the list modal toggle the filters menu Before this commit, the filters dropdown was almost invisble and too much on the right anyway This was because the RTL was not taken into account After this commit, we anchor the dropdown on the right (both as in good and as in side) side of its trigger button Also, when modifying the dropdown, by developping the Custom Filter we force the repositioning of the dropdown, to take those new elements into account It is expected though that after this commit, in RTL, the dropdown in a modal that has a scrollbar (which is on the left) will be slightly pushed to the right. It is usable and visible though Some kind of plumbing using $el.data('offset', fn) from popper.js is possible, but has been deemed not robust enough Docs https://getbootstrap.com/docs/4.0/components/dropdowns/#methods OPW 2088934
Showing
- addons/web/static/src/js/views/control_panel/search/add_new_favorite_menu.js 1 addition, 0 deletions...rc/js/views/control_panel/search/add_new_favorite_menu.js
- addons/web/static/src/js/views/control_panel/search/favorite_menu.js 20 additions, 1 deletion...static/src/js/views/control_panel/search/favorite_menu.js
- addons/web/static/src/js/views/control_panel/search/filter_menu.js 3 additions, 2 deletions...b/static/src/js/views/control_panel/search/filter_menu.js
- addons/web/static/src/js/views/control_panel/search/groupby_menu.js 3 additions, 2 deletions.../static/src/js/views/control_panel/search/groupby_menu.js
- addons/web/static/src/js/widgets/dropdown_menu.js 13 additions, 0 deletionsaddons/web/static/src/js/widgets/dropdown_menu.js
Please register or sign in to comment