Skip to content

Commit 60f7a9b

Browse files
committed
Merge branch 'release/2.2'
2 parents 74707b2 + bdfba31 commit 60f7a9b

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

dist/angular-fusioncharts.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-fusioncharts",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "Angular plugin for FusionCharts",
55
"main": "src/angular-fusioncharts",
66
"repository": {

src/angular-fusioncharts.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,19 @@
5555
'width': {
5656
ifExist: false,
5757
observer: function (newVal) {
58-
chart.resizeTo(scope.width, scope.height);
58+
if (newVal) {
59+
chartConfigObject.width = newVal;
60+
chart.resizeTo(scope.width, scope.height);
61+
}
5962
}
6063
},
6164
'height': {
6265
ifExist: false,
6366
observer: function (newVal) {
64-
chart.resizeTo(scope.width, scope.height);
67+
if (newVal){
68+
chartConfigObject.height = newVal;
69+
chart.resizeTo(scope.width, scope.height);
70+
}
6571
}
6672
},
6773
'chart': {

0 commit comments

Comments
 (0)