diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_field_graph_echarts_js.js b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_field_graph_echarts_js.js index 5df9112b9330f6fa1ea639130486ff1bba4483fc..f9839d3849551e29ea1d3fa14264f5cda8ad5c2d 100644 --- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_field_graph_echarts_js.js +++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_field_graph_echarts_js.js @@ -175,9 +175,9 @@ this.listenToClickEventOnTheChart(chart); // XXX - window.onresize = function () { + window.addEventListener("resize", function () { chart.resize(); - }; + }, {passive: true}); gadget.property_dict.chart = chart; })