Skip to content

Commit 9af4c90

Browse files
committed
Add indentation to textGap as well
1 parent c394b5a commit 9af4c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/legend/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ function computeLegendDimensions(gd, groups, traces, legendObj) {
765765
var bw = legendObj.borderwidth;
766766
var bw2 = 2 * bw;
767767
var itemGap = constants.itemGap;
768-
var textGap = legendObj.itemwidth + itemGap * 2;
768+
var textGap = legendObj.indentation + legendObj.itemwidth + itemGap * 2;
769769
var endPad = 2 * (bw + itemGap);
770770

771771
var yanchor = getYanchor(legendObj);

0 commit comments

Comments
 (0)