diff options
author | Struan Donald <struan@exo.org.uk> | 2013-05-30 17:49:25 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-05-30 17:49:25 +0100 |
commit | ba4110099ee388fbd120c124c746ad957ee6a8a7 (patch) | |
tree | 4c915899a966986fa23afe0fc8d48f2caf203eb6 /www/js/map-OpenLayers.js | |
parent | 1c627258471e7c22980275c568a543682f78b614 (diff) |
do not use a fixed position header on the map screen as that causes the
size of the screen to jump before navigation and the confirm button and
attribution text to move
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r-- | www/js/map-OpenLayers.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index d5c7781..e28a5e0 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -217,14 +217,14 @@ OpenLayers.Map.prototype.getCurrentSize = function() { function show_map(event) { if (typeof fixmystreet !== 'undefined' && fixmystreet.page == 'around') { // Immediately go full screen map if on around page - var footer = $("div[data-role='footer']:visible"), - content = $("div[data-role='content']:visible"), - viewHeight = $(window).height(), - contentHeight = viewHeight - footer.outerHeight(); + var screen = $(window).height(), + header = $('[data-role=header]').height(), + footer = $('[data-role=footer]').height(), + content = screen - header - footer; $('#map_box').css({ position: 'absolute', - top: 0, left: 0, right: 0, bottom: 0, - height: contentHeight, + top: 45, left: 0, right: 0, bottom: 0, + height: content, margin: 0 }); $('#fms_pan_zoom').css({ top: '2.75em !important' }); |