Skip to content

Commit eed3df6

Browse files
committed
Merge pull request #157 from jeff-phillips-18/master
Fix to allow setting of sparkline chart height in config.
2 parents f615775 + 1869543 commit eed3df6

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

dist/angular-patternfly.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,9 @@ angular.module('patternfly.charts').directive('pfSparklineChart', ["c3ChartDefau
16881688
scope.config = pfUtils.merge(scope.defaultConfig, scope.config);
16891689
}, true);
16901690
scope.$watch('chartHeight', function () {
1691-
scope.config.size.height = scope.chartHeight;
1691+
if (scope.chartHeight) {
1692+
scope.config.size.height = scope.chartHeight;
1693+
}
16921694
});
16931695
scope.$watch('showXAxis', function () {
16941696
scope.config.axis.x.show = scope.showXAxis === true;

0 commit comments

Comments
 (0)