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 d3e5b9d

Browse filesBrowse files
committed
set width and height in scrollbar rect:
- to be a valid <svg> all <rect> must have set width and height attributes.
1 parent 8dd98a0 commit d3e5b9d
Copy full SHA for d3e5b9d

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.