From 6296cb33c93f47e1ff31859471f66f008c78d358 Mon Sep 17 00:00:00 2001 From: Hakim Cassimally Date: Thu, 16 Oct 2014 13:25:52 +0000 Subject: [Warwickshire] raise z-index of map, working around chrome bug works around https://github.com/mysociety/FixMyStreet-Commercial/issues/614 (This is a chrome bug, but as it doesn't happen with standard FMS, we investigated further with @stevenday and @zarino. For reasons I don't understand, the issue is fixed by: - removing negative z-index from map - this then makes the site-header not display, so we set position:relative -- not having done this before might be the reason for the previous negative index? ) --- web/cobrands/warwickshire/layout.scss | 1 + web/cobrands/warwickshire/position_map.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/cobrands/warwickshire/layout.scss b/web/cobrands/warwickshire/layout.scss index 1d15dcced..9ddba0721 100644 --- a/web/cobrands/warwickshire/layout.scss +++ b/web/cobrands/warwickshire/layout.scss @@ -3,6 +3,7 @@ #site-header { + position: relative; border-top-width: 0; .navbar { diff --git a/web/cobrands/warwickshire/position_map.js b/web/cobrands/warwickshire/position_map.js index 30ee88c67..02ec71f2f 100644 --- a/web/cobrands/warwickshire/position_map.js +++ b/web/cobrands/warwickshire/position_map.js @@ -9,7 +9,7 @@ function position_map_box() { }); } else { $('#map_box').prependTo('body').css({ - zIndex: -1, position: 'fixed', + zIndex: 0, position: 'fixed', top: 0, left: 0, right: 0, bottom: 0, width: '100%', height: '100%', margin: 0 -- cgit v1.2.3