Skip to content

Commit 81cf841

Browse files
committed
Change bg style changes to attrs for ff compatiblity
1 parent 36c3a69 commit 81cf841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/legend/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ legend.draw = function(td) {
581581
scrollheight = Math.min(plotHeight - ly, opts.height),
582582
scrollPosition = scrollBox.attr('data-scroll') ? scrollBox.attr('data-scroll') : 0;
583583

584-
bg.style({ width: opts.width, height: scrollheight });
584+
bg.attr({ width: opts.width, height: scrollheight });
585585
scrollBox.attr('transform', 'translate(0, ' + scrollPosition + ')');
586586

587587
legendsvg.call(Drawing.setRect, lx, ly, opts.width, scrollheight);

0 commit comments

Comments
 (0)