Skip to content

Commit 0456633

Browse files
committed
Merge pull request #304 from plotly/fix-pdf-export
Make legend scrollbar valid svg elements
2 parents a4a0664 + d3e5b9d commit 0456633

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/legend/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ legend.draw = function(td) {
479479
.attr({
480480
'class': 'scrollbar',
481481
'rx': 20,
482-
'ry': 2
482+
'ry': 2,
483+
'width': 0,
484+
'height': 0
483485
})
484486
.call(Color.fill, '#808BA4');
485487

@@ -624,7 +626,7 @@ legend.draw = function(td) {
624626
window.addEventListener('mouseup', mUp);
625627
});
626628

627-
// Move scrollbar to starting position on the first render
629+
// Move scrollbar to starting position on the first render
628630
scrollBar.call(
629631
Drawing.setRect,
630632
opts.width - (constants.scrollBarWidth + constants.scrollBarMargin),

0 commit comments

Comments
 (0)