diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-07-20 22:42:18 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-25 07:14:42 -0700 |
commit | 0122b1a6d77475b5943933af304e8109a515ad7a (patch) | |
tree | 34b6adc00c8982fdbb5c8b3d29cd77280c517917 | |
parent | 03df7b989d6d94ca47c7cbdfe90f2702e176f897 (diff) | |
download | subsurface-0122b1a6d77475b5943933af304e8109a515ad7a.tar.gz |
HTML: rescale dive profile with page zoom in/out
Rescale the dive profile view with page zooming in and out.
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>
-rw-r--r-- | theme/list_lib.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index 7204746b8..0789714e1 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -1081,3 +1081,7 @@ function switchDives(e) } } } + +window.onresize = function(event) { + plot1.replot( { resetAxes: true } ); +}; |