Skip to content

Commit 9dfdedd

Browse files
committed
Add opts.tracegroupgap to height not traceGap
1 parent f6d430b commit 9dfdedd

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/components/legend/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ function computeLegendDimensions(gd, groups, traces) {
633633
var y = ((1 - (length / maxItems)) * maxHeight);
634634
currRowHeight = currRowHeight > (rowNum - 1 * maxHeight) ? (rowNum - 1) * maxHeight : y;
635635

636-
currRowHeight += rowNum > 1 ? traceGap : 0;
636+
currRowHeight += rowNum > 1 ? opts.tracegroupgap : 0;
637637

638638
rowHeights.push(currRowHeight);
639639
groupXOffsets.push(opts._width);
Loading

0 commit comments

Comments
 (0)