[IMP] web: display issue with fixed table layout list in group

Before this commit: When o2m inside inner group and it has record then
sometime group is not displayed side by side instead second group comes
below first group.

After this commit: If o2m inside inner group and it has record, it will
always displayed beside first group, the issue was occuring due to
o2m list table layout which is fixed and due to which group width
increased and second group comes below first group, here we are setting
max-width to listview so that it never increase width than max-width.

task-2571376

closes odoo/odoo#72700

Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
This commit is contained in:
Mohammed Shekha
2021-06-24 12:07:23 +00:00
parent a03b57a1c5
commit 2e818e7af9
@@ -725,6 +725,9 @@ ListRenderer.include({
}
});
// set max-width before setting table-layout fixed
this.$el.css({ 'max-width': this.$el.width() });
// Set the table layout to fixed
table.style.tableLayout = 'fixed';
},