#3358 Layoutfix for growing parent when children spans new rows due to updated columns widths

This commit is contained in:
Knut Sveidqvist 2024-02-02 11:10:42 +01:00
parent 2fa9219353
commit 51e7444b94
1 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,10 @@ function setBlockSizes(block: Block, db: BlockDB, siblingWidth = 0, siblingHeigh
}
const columns = block.columns || -1;
const numItems = block.children.length;
let numItems = 0;
for (const child of block.children) {
numItems += child.widthInColumns || 1;
}
// The width and height in number blocks
let xSize = block.children.length;