aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Angell <jbangell@gmail.com>2012-03-14 10:04:14 +0000
committerJosh Angell <jbangell@gmail.com>2012-03-14 10:04:14 +0000
commit7fad968ed54e502ffffb6567b07c5eddd3e063e8 (patch)
tree870ba340aca3efa58c61284f7ad0d05736b46b40
parent8d07e6e0036a15901b3eb077325beace61f2e1b8 (diff)
Move the general desktop .content heightfix to the end of the document ready function, that way the fix gets applied after all the page manipulation (for #277)
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js20
1 files changed, 13 insertions, 7 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 29aecef52..aab20fc0b 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -134,13 +134,6 @@ $(function(){
}
}
- //heightfix the desktop .content div
- if(Modernizr.mq('only screen and (min-width:48em)')) {
- if (!($('body').hasClass('frontpage'))){
- heightFix(window, '.content', -176);
- }
- }
-
$('#pc').focus();
$('input[type=submit]').removeAttr('disabled');
@@ -546,6 +539,19 @@ $.fn.drawer = function(id, ajax) {
'overlayColor': '#000000'
});
+
+
+ /*
+ * heightfix the desktop .content div
+ *
+ * this must be kept as the last thing done so that the
+ * rendered height is used after any page manipulation (such as tabs)
+ */
+ if(Modernizr.mq('only screen and (min-width:48em)')) {
+ if (!($('body').hasClass('frontpage'))){
+ heightFix(window, '.content', -176);
+ }
+ }
});
/*