From af9cd2135dc118d44a64a02098f8578f173171b7 Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Mon, 10 Mar 2014 18:16:18 +0100 Subject: [PATCH] Don't use updateOnResize in IE8 for equal heights This seems to fix the scrolling issues in IE8 in the media db. References #83 --- templates/2k11/admin/serendipity_editor.js.tpl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index f82c2fa4..ba79829c 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -1322,9 +1322,15 @@ var AccessifyHTML5 = function (defaults, more_fixes) { // Equal Heights $(window).load(function() { if($('body').has('.equal_heights').size() > 0) { - $('.equal_heights').syncHeight({ - updateOnResize: true - }); + if($('html').hasClass('lt-ie9')) { + $('.equal_heights').syncHeight({ + updateOnResize: false + }); + } else { + $('.equal_heights').syncHeight({ + updateOnResize: true + }); + } } }); })(jQuery);