[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:
@@ -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';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user