summaryrefslogtreecommitdiffstats
path: root/theme/list_lib.js
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2014-07-20 22:42:18 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-25 07:14:42 -0700
commit0122b1a6d77475b5943933af304e8109a515ad7a (patch)
tree34b6adc00c8982fdbb5c8b3d29cd77280c517917 /theme/list_lib.js
parent03df7b989d6d94ca47c7cbdfe90f2702e176f897 (diff)
downloadsubsurface-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>
Diffstat (limited to 'theme/list_lib.js')
-rw-r--r--theme/list_lib.js4
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 } );
+};