Skip to content

Commit

Permalink
Fix 5706 Block Positioning when nesting and blocks span columns
Browse files Browse the repository at this point in the history
  • Loading branch information
NealGooch authored Dec 8, 2024
1 parent df636c6 commit ad9edf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/block/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const getMaxChildSize = (block: Block) => {
continue;
}
if (width > maxWidth) {
maxWidth = width / (block.widthInColumns ?? 1);
maxWidth = width / (child.widthInColumns ?? 1);
}
if (height > maxHeight) {
maxHeight = height;
Expand Down

0 comments on commit ad9edf5

Please sign in to comment.