aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-06-08 14:03:28 +0100
committerStruan Donald <struan@exo.org.uk>2012-06-08 14:03:28 +0100
commit8511dea19e2c01b6722391c7cd21ed0e5c289369 (patch)
tree74cdfdae78349e92400ece931e26303ad582720b /web
parent72d6bab205bcac382d3cda6fc825f0fcc7a739cd (diff)
do not allow map to become too large
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/barnet/position_map.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/cobrands/barnet/position_map.js b/web/cobrands/barnet/position_map.js
index e6d46288e..465d852ec 100644
--- a/web/cobrands/barnet/position_map.js
+++ b/web/cobrands/barnet/position_map.js
@@ -1,5 +1,10 @@
function position_map_box() {
var map_pos = 'absolute', map_height = $('.wrapper').height();
+ // on the all reports page the height of the wrapper leads to a very
+ // large map so we set a maximum size
+ if ( map_height > 600 ) {
+ map_height = 600;
+ }
$('#map_box').prependTo('.wrapper').css({
zIndex: 0, position: map_pos,
top: 1, left: $('.wrapper').left,
@@ -11,6 +16,9 @@ function position_map_box() {
function map_fix() {
var height = $('.wrapper').height() - 3;
+ if ( height > 600 ) {
+ height = 600;
+ }
$('#map_box').height(height);
}