Skip to content

Commit

Permalink
correctly check for existence of height
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilDrW committed Sep 24, 2015
1 parent 42248c7 commit 0cd525a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/angular-nvd3.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
// remove whole svg element with old data
d3.select(element[0]).select('svg').remove();

if (scope.options.chart.width && !isNaN(scope.options.chart.height)) scope.options.chart.height += 'px';
if (scope.options.chart.height && !isNaN(scope.options.chart.height)) scope.options.chart.height += 'px';
if (scope.options.chart.width && !isNaN(scope.options.chart.width)) scope.options.chart.width += 'px';

// Select the current element to add <svg> element and to render the chart in
Expand Down

0 comments on commit 0cd525a

Please sign in to comment.