From 2f71ffb4e740f5478967ee1b633c65e4ffd31d80 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 14 Mar 2012 11:24:07 +0000 Subject: [PATCH] Using Modernizr.mq() breaks e.g. IE form display due to adding to I assume. Use the mobile class instead. --- web/cobrands/fixmystreet/fixmystreet.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 7b3f4fefecd..269540dad8e 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/ *