mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
HTML: don't replot the graph if not plotted before.
Prevent plotting the graph when screen is resized before the graph is plotted for the first time. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e968d91943
commit
477e37d15c
1 changed files with 2 additions and 1 deletions
|
@ -1205,5 +1205,6 @@ function switchDives(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onresize = function(event) {
|
window.onresize = function(event) {
|
||||||
plot1.replot( { resetAxes: true } );
|
if (plot1)
|
||||||
|
plot1.replot( { resetAxes: true } );
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue