Commit f620538c authored by Masayuki Tanaka's avatar Masayuki Tanaka

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

parent 22fcf44d
...@@ -329,12 +329,20 @@ ...@@ -329,12 +329,20 @@
window.onresize = $$.generateResize(); window.onresize = $$.generateResize();
} }
if (window.onresize.add) { if (window.onresize.add) {
var timeout;
window.onresize.add(function () { window.onresize.add(function () {
config.onresize.call($$); config.onresize.call($$);
}); });
if (config.resize_auto) {
window.onresize.add(function () { window.onresize.add(function () {
if (timeout !== undefined) {
clearTimeout(timeout);
}
timeout = setTimeout(function () {
$$.api.flush(); $$.api.flush();
}, 100);
}); });
}
window.onresize.add(function () { window.onresize.add(function () {
config.onresized.call($$); config.onresized.call($$);
}); });
...@@ -1026,6 +1034,7 @@ ...@@ -1026,6 +1034,7 @@
padding_right: undefined, padding_right: undefined,
padding_top: undefined, padding_top: undefined,
padding_bottom: undefined, padding_bottom: undefined,
resize_auto: true,
zoom_enabled: false, zoom_enabled: false,
zoom_extent: undefined, zoom_extent: undefined,
zoom_privileged: false, zoom_privileged: false,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment