Commit 66d8aa90 authored by Tristan Cavelier's avatar Tristan Cavelier Committed by Eteri

erp5_officejs: do not use onresize property

parent afb892f7
......@@ -175,9 +175,9 @@
this.listenToClickEventOnTheChart(chart);
// XXX
window.onresize = function () {
window.addEventListener("resize", function () {
chart.resize();
};
}, {passive: true});
gadget.property_dict.chart = chart;
})
......
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