handled bug on resize concentration graph
This commit is contained in:
parent
6d056d8576
commit
4003b6c0ba
1 changed files with 5 additions and 1 deletions
|
|
@ -849,7 +849,11 @@ function draw_plot(svg_id, times, concentrations, short_range_concentrations, cu
|
|||
update_concentration_plot(short_range_concentrations, data_for_graphs.short_range_concentrations, data_for_graphs.short_range_concentrations);
|
||||
|
||||
// Redraw based on the new size whenever the browser window is resized.
|
||||
window.addEventListener("resize", redraw);
|
||||
window.addEventListener("resize", e => {
|
||||
redraw();
|
||||
update_concentration_plot(short_range_concentrations, data_for_graphs.short_range_concentrations, data_for_graphs.short_range_concentrations);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue