diff options
-rw-r--r-- | web/cobrands/barnet/position_map.js | 8 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 2 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/position_map.js | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/web/cobrands/barnet/position_map.js b/web/cobrands/barnet/position_map.js index e994b71e0..8c86052bf 100644 --- a/web/cobrands/barnet/position_map.js +++ b/web/cobrands/barnet/position_map.js @@ -1,8 +1,5 @@ function position_map_box() { var map_pos = 'absolute', map_height = $('.wrapper').height(); - if ( !$('html').hasClass('ie6') && map_height < 677 ) { - map_height = '677px'; - } $('#map_box').prependTo('.wrapper').css({ zIndex: 0, position: map_pos, top: 1, left: $('.wrapper').left, @@ -11,3 +8,8 @@ function position_map_box() { margin: 0 }); } + +function map_fix() { + var height = $('.wrapper').height() - 3; + $('#map_box').height(height); +} diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index ffbf2952f..1347ae394 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -563,6 +563,8 @@ $.fn.drawer = function(id, ajax) { if (!$('html.mobile').length) { if (!($('body').hasClass('frontpage'))){ heightFix(window, '.content', -176); + // in case we have a map that isn't full screen + map_fix(); } } diff --git a/web/cobrands/fixmystreet/position_map.js b/web/cobrands/fixmystreet/position_map.js index b2aaefe8c..5f5d8e677 100644 --- a/web/cobrands/fixmystreet/position_map.js +++ b/web/cobrands/fixmystreet/position_map.js @@ -11,3 +11,5 @@ function position_map_box() { margin: 0 }); } + +function map_fix() {} |