Skip to content

Commit d3e5b9d

Browse 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

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)