Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-block-nested-positioning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'mermaid': patch
---

fix: correct block positioning when nested blocks span multiple columns
38 changes: 38 additions & 0 deletions cypress/integration/rendering/block.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,44 @@ describe('Block diagram', () => {
a
b
a --- b
`,
{}
);
});

it('BL32: nested blocks spanning columns should not overlap (issue #5706)', () => {
imgSnapshotTest(
`block-beta
columns 4

block:0_0:4
columns 6
Example:2
space:2
ExampleOther:2
ExampleOther:1
block:0_0_0:6
a b c d e f g h
end
end
`,
{}
);
});

it('BL33: rows with different heights should not overlap', () => {
imgSnapshotTest(
`block
columns 3
a:3
block:group1:2
columns 2
h i j k
end
g
block:group2:3
l m n o p q r
end
`,
{}
);
Expand Down
Loading
Loading