summaryrefslogtreecommitdiff
path: root/addons/note/data/note_data.xml
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2020-01-27 08:19:18 +0000
committerqsm-odoo <qsm@odoo.com>2020-02-07 12:34:06 +0000
commit91fb0d302090dcbf851ad3b807bf0dd091653a7a (patch)
tree6ee1773f3fc52c7e41b1489ea072944179be384e /addons/note/data/note_data.xml
parente8a580f3b722af9c4f37ed199a5ccc4d5c0d7ee4 (diff)
[FIX] website: fix number of column option broken layout
Normally, the number of column option adjusts the width of each column after changing their number so that they always fit in one row. In previous versions, the sequence of the code was correct thanks to jQuery's deferreds executing their then callbacks synchronously if the promise was already resolved. However, native Promise objects always put their then callbacks in the microtask queue, and this was resulting in the column width classes being recalculated before their number had actually changed. This commit fixes that by calculating the width of the columns based on how many columns there will be after addition/removal. It also introduces a new field on the option that is used to update the UI so that it displays the correct number. closes odoo/odoo#44849 X-original-commit: 58804d6ea375629b07748bc442eaccc401c56d1b Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/note/data/note_data.xml')
0 files changed, 0 insertions, 0 deletions