Skip to content

Commit 814c6a0

Browse files
committed
Condition diamonds should have a minimum height relative to the width
1 parent 3b6c122 commit 814c6a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/flowchart.symbol.condition.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function Condition(chart, options) {
3636
width += width/2;
3737
var height = this.text.getBBox().height + 2 * (this.chart.options.symbols[this.symbolType]['text-margin'] || this.chart.options['text-margin']);
3838
height += height/2;
39+
height = Math.max(width * 0.5, height);
3940
var startX = width/4;
4041
var startY = height/4;
4142

0 commit comments

Comments
 (0)