aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2014-10-16 13:25:52 +0000
committerHakim Cassimally <hakim@mysociety.org>2014-10-16 16:57:00 +0000
commit6296cb33c93f47e1ff31859471f66f008c78d358 (patch)
treefd835ca3e1dcf5c2000b445585f84d1e899d83a8
parent1d66428dcc75a47c02f5cbd567effc567d38951f (diff)
[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? )
-rw-r--r--web/cobrands/warwickshire/layout.scss1
-rw-r--r--web/cobrands/warwickshire/position_map.js2
2 files changed, 2 insertions, 1 deletions
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