Browse Source

Update c3.js and c3.min.js - #860

pull/1207/head
Masayuki Tanaka 10 years ago
parent
commit
f620538c5f
  1. 15
      c3.js
  2. 2
      c3.min.js

15
c3.js

@ -329,12 +329,20 @@
window.onresize = $$.generateResize();
}
if (window.onresize.add) {
var timeout;
window.onresize.add(function () {
config.onresize.call($$);
});
window.onresize.add(function () {
$$.api.flush();
});
if (config.resize_auto) {
window.onresize.add(function () {
if (timeout !== undefined) {
clearTimeout(timeout);
}
timeout = setTimeout(function () {
$$.api.flush();
}, 100);
});
}
window.onresize.add(function () {
config.onresized.call($$);
});
@ -1026,6 +1034,7 @@
padding_right: undefined,
padding_top: undefined,
padding_bottom: undefined,
resize_auto: true,
zoom_enabled: false,
zoom_extent: undefined,
zoom_privileged: false,

2
c3.min.js vendored

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