Browse Source

Add onresize and onresized event hander - #145

pull/153/merge
Masayuki Tanaka 11 years ago
parent
commit
fc9e61da60
  1. 6
      c3.js
  2. 6
      c3.min.js

6
c3.js

@ -113,7 +113,9 @@
__zoom_privileged = getConfig(['zoom', 'privileged'], false);
var __onenter = getConfig(['onenter'], function () {}),
__onleave = getConfig(['onleave'], function () {});
__onleave = getConfig(['onleave'], function () {}),
__onresize = getConfig(['onresize'], function () {}),
__onresized = getConfig(['onresized'], function () {});
var __transition_duration = getConfig(['transition', 'duration'], 350);
@ -2656,9 +2658,11 @@
window.onresize = generateResize();
}
if (window.onresize.add) {
window.onresize.add(__onresize);
window.onresize.add(function () {
updateAndRedraw({withLegend: true, withTransition: false, withTransitionForTransform: false});
});
window.onresize.add(__onresized);
}
}

6
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save