Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0456633

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

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎src/components/legend/index.js

Copy file name to clipboardExpand all lines: src/components/legend/index.js
+4-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.