Skip to content

Commit 12621d9

Browse files
fix extra "-" bug in margin style
1 parent 3e24532 commit 12621d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inst/htmlwidgets/diagonalNetwork.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ HTMLWidgets.widget({
4545
margin[ky] = x.options.margin[ky];
4646
}
4747
// set the margin on the svg with css style
48-
s.style(["margin-",ky].join("-"), margin[ky]);
48+
s.style(["margin",ky].join("-"), margin[ky]);
4949
});
5050

5151

inst/htmlwidgets/radialNetwork.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ HTMLWidgets.widget({
4444
margin[ky] = x.options.margin[ky];
4545
}
4646
// set the margin on the svg with css style
47-
s.style(["margin-",ky].join("-"), margin[ky]);
47+
s.style(["margin",ky].join("-"), margin[ky]);
4848
});
4949

5050
var diameter = Math.min(

0 commit comments

Comments
 (0)