summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-04-29 07:21:35 +0000
committerAaron Bohy <aab@odoo.com>2020-05-05 08:48:34 +0000
commita3c0d6ee714277819f541c6fa24934db55dfef0c (patch)
treeb2aabd261a31d074cc878bc5514196b4a7a9f18f /addons/web/static/tests/fields/basic_fields_tests.js
parent1d6e4948d2e8534379b6815e931a6eaa58955e18 (diff)
[FIX] web: list: prevent flickering
Have a list view with "badge" field component and 'decoration-xxx' attributes (on that field). Before this commit, it flickered when the user refreshed the list (for instance, by clicking on the list icon in the view switcher). The badges were displayed with a grey background (i.e. no decoration) for a brief moment, before their style was applied. Their style is applied in the mounted hook, which is called by 'on_attach_callback' (legacy version of mounted). However, the list renderer computes its column widths in 'on_attach_callback', which produces a repaint. This commit moves this operation to the end of on_attach_callback, such that other processing (like applying the badges style) is done before the repaint.
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions