Skip to content

Commit b747224

Browse files
committed
Fix position of legend scrollbar
1 parent 7f71b53 commit b747224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/legend/draw.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ module.exports = function draw(gd) {
257257
// Move scrollbar to starting position
258258
scrollBar.call(
259259
Drawing.setRect,
260-
opts.width - (constants.scrollBarWidth + constants.scrollBarMargin),
260+
opts.width - constants.scrollBarMargin,
261261
constants.scrollBarMargin,
262262
constants.scrollBarWidth,
263263
constants.scrollBarHeight
@@ -299,7 +299,7 @@ module.exports = function draw(gd) {
299299
scrollBox.attr('transform', 'translate(0, ' + scrollBoxY + ')');
300300
scrollBar.call(
301301
Drawing.setRect,
302-
opts.width - (constants.scrollBarWidth + constants.scrollBarMargin),
302+
opts.width - constants.scrollBarMargin,
303303
scrollBarY,
304304
constants.scrollBarWidth,
305305
constants.scrollBarHeight

0 commit comments

Comments
 (0)