Commit fab20759 authored by Evgeny's avatar Evgeny

Fix isNode typo

parent 32e296e9
......@@ -1041,7 +1041,7 @@
c3_chart_internal_fn.updateSvgSize = function () {
var $$ = this,
brush = $$.svg.select(".c3-brush .background");
$$.svg.attr('width', $$.currentWidth + (isNode ? 10 : 0)).attr('height', $$.currentHeight);
$$.svg.attr('width', $$.currentWidth + (isNode() ? 10 : 0)).attr('height', $$.currentHeight);
$$.svg.selectAll(['#' + $$.clipId, '#' + $$.clipIdForGrid]).select('rect')
.attr('width', $$.width)
.attr('height', $$.height);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -42,7 +42,7 @@ describe('c3 chart', function () {
it('should have same width', function () {
var svg = d3.select('#chart svg');
expect(+svg.attr('width')).toBe(650);
expect(+svg.attr('width')).toBe(640);
});
it('should have same height', function () {
......
......@@ -32,7 +32,7 @@ describe('c3 chart legend', function () {
it('should be located on the center of chart', function () {
var box = chart.internal.legend.node().getBoundingClientRect();
expect(box.left + box.right).toBe(918);
expect(box.left + box.right).toBe(640);
});
});
......
......@@ -820,7 +820,7 @@ c3_chart_internal_fn.transformAll = function (withTransition, transitions) {
c3_chart_internal_fn.updateSvgSize = function () {
var $$ = this,
brush = $$.svg.select(".c3-brush .background");
$$.svg.attr('width', $$.currentWidth + (isNode ? 10 : 0)).attr('height', $$.currentHeight);
$$.svg.attr('width', $$.currentWidth + (isNode() ? 10 : 0)).attr('height', $$.currentHeight);
$$.svg.selectAll(['#' + $$.clipId, '#' + $$.clipIdForGrid]).select('rect')
.attr('width', $$.width)
.attr('height', $$.height);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment