From d3e5b9d7a045c48c1001c4b503c085cf335c434b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20T=C3=A9treault-Pinard?= Date: Tue, 1 Mar 2016 15:05:12 -0500 Subject: [PATCH] set width and height in scrollbar rect: - to be a valid all must have set width and height attributes. --- src/components/legend/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/legend/index.js b/src/components/legend/index.js index 61931f2e396..80257f445ef 100644 --- a/src/components/legend/index.js +++ b/src/components/legend/index.js @@ -479,7 +479,9 @@ legend.draw = function(td) { .attr({ 'class': 'scrollbar', 'rx': 20, - 'ry': 2 + 'ry': 2, + 'width': 0, + 'height': 0 }) .call(Color.fill, '#808BA4'); @@ -624,7 +626,7 @@ legend.draw = function(td) { window.addEventListener('mouseup', mUp); }); - // Move scrollbar to starting position on the first render + // Move scrollbar to starting position on the first render scrollBar.call( Drawing.setRect, opts.width - (constants.scrollBarWidth + constants.scrollBarMargin),