summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2021-03-11 11:15:18 +0000
committerAdrien Dieudonne <adr@odoo.com>2021-03-12 09:36:22 +0000
commit336d5eee6484cfa66616560fdcca35cfcceb361d (patch)
treeb3f97b4c9e3f255da1363a181fa0043cf9cf8705 /addons/web/static/src/js/fields/basic_fields.js
parent7ec87f3d9cf4a74069b93226ad360cb4df13ce6c (diff)
[FIX] web: optional column dropdown out off screen on mobile
The left css property computation wasn't usefull for ltr mode and even worse, it introduced a bug when a horizontal bar was present (as often on mobile). The entire width of the table was used to compute the offset even though we only saw part of it (scroll bar). It's why this left css property was too high. We can simply remove this logic as "right: 0" on .o_optional_columns already do the job for the ltr mode. Note that we still need to compute the left property for the rtl mode to put the dropdown menu above the table. Otherwise it will be on his left! Steps to reproduce: - Go to Subscription - Open an existing record - Try to open subscription lines column dropdown => You need to scroll on the right to see it. Related PR: https://github.com/odoo/odoo/pull/62472 Related Task ID: 1929043 closes odoo/odoo#67738 X-original-commit: 87c6f6338d267acaab90705f9d5ca8ad27ae30fd Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions