aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-03-14 11:24:07 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-03-14 11:24:07 +0000
commit2f71ffb4e740f5478967ee1b633c65e4ffd31d80 (patch)
treef4358f1a119b5ff1c5dc02492ddf67e732ca4eb0
parent5342e1d16aa7d1776522acd5c13b2f4f704f3b93 (diff)
Using Modernizr.mq() breaks e.g. IE form display due to adding to <body> I assume. Use the mobile class instead.
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 7b3f4fefe..269540dad 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -531,24 +531,18 @@ $.fn.drawer = function(id, ajax) {
'overlayColor': '#000000'
});
-
-
-
-
-
/*
* heightfix the desktop .content div
*
* this must be kept near the end so that the
* rendered height is used after any page manipulation (such as tabs)
*/
- if(Modernizr.mq('only screen and (min-width:48em)')) {
+ if (!$('html.mobile').length) {
if (!($('body').hasClass('frontpage'))){
heightFix(window, '.content', -176);
}
}
-
/*
* Placeholder polyfill from https://github.com/mathiasbynens/jquery-placeholder/
*