[FIX] web_editor: properly convert overflowing row
closes odoo/odoo#80621 X-original-commit: 5a1d94d29004f0f0ddd81c25020a90083d6b8bea Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -478,13 +478,13 @@ function bootstrapToTable($editable) {
|
||||
if (gridIndex + columnSize < 12) {
|
||||
$currentCol = grid[gridIndex];
|
||||
_applyColspanToGridElement($currentCol, columnSize);
|
||||
gridIndex += columnSize;
|
||||
if (columnIndex === $bootstrapColumns.length - 1) {
|
||||
// We handled all the columns but there is still space
|
||||
// in the row. Insert the columns and fill the row.
|
||||
grid[gridIndex].attr('colspan', 12 - gridIndex);
|
||||
$currentRow.append(...grid.filter(td => td.attr('colspan')));
|
||||
}
|
||||
gridIndex += columnSize;
|
||||
} else if (gridIndex + columnSize === 12) {
|
||||
// Finish the row.
|
||||
$currentCol = grid[gridIndex];
|
||||
|
||||
Reference in New Issue
Block a user