Skip to content

Commit 5b5a102

Browse files
committed
code in original order
1 parent 5f38595 commit 5b5a102

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/legend/draw.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -584,13 +584,12 @@ function computeLegendDimensions(gd, groups, traces) {
584584
opts.height = opts.height + maxTraceHeight;
585585
}
586586

587-
opts.width += traceGap + traceWidth;
588-
opts.height = Math.max(opts.height, legendItem.height);
589-
590587
Lib.setTranslate(this,
591588
(borderwidth + startX),
592589
(5 + borderwidth + legendItem.height / 2) + rowHeight);
593590

591+
opts.width += traceGap + traceWidth;
592+
opts.height = Math.max(opts.height, legendItem.height);
594593

595594
//keep track of tallest trace in group
596595
startX += traceGap + traceWidth;

0 commit comments

Comments
 (0)