Commit f2fc4d73 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_officejs: do not use onresize property

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