diff --git a/src/IDF/templates/idf/base.html b/src/IDF/templates/idf/base.html
index 3009db0..d2a0a07 100644
--- a/src/IDF/templates/idf/base.html
+++ b/src/IDF/templates/idf/base.html
@@ -98,6 +98,7 @@ $(document).ready(function(){
$('div#context').offset().top + $('div#context').height() <
$(window).height();
});
+ $(window).resize();
});
//]]>{/literal}
{/if}