[FIX] web_editor: properly convert heights of masonry cells
Masonry's top inner container needs to have a 100% height to properly size its contents. task-2925779 X-original-commit: 717672d56958915084d98d69246c9e7e986fabab Part-of: odoo/odoo#97962
This commit is contained in:
@@ -122,6 +122,9 @@ function bootstrapToTable($editable) {
|
||||
// These containers from the mass mailing masonry snippet require full
|
||||
// height contents, which is only possible if the table itself has a set
|
||||
// height. We also need to restyle it because of the change in structure.
|
||||
for(const masonryTopInnerContainer of editable.querySelectorAll('.s_masonry_block > .container')) {
|
||||
masonryTopInnerContainer.style.setProperty('height', '100%');
|
||||
}
|
||||
for (const masonryGrid of editable.querySelectorAll('.o_masonry_grid_container')) {
|
||||
masonryGrid.style.setProperty('padding', 0);
|
||||
for (const fakeTable of [...masonryGrid.children].filter(c => c.classList.contains('o_fake_table'))) {
|
||||
|
||||
Reference in New Issue
Block a user