From 82ce4cd0870f5f0fe1e27ab36ced7d2c23fd94b9 Mon Sep 17 00:00:00 2001 From: Dennis Geldmacher Date: Sat, 16 Aug 2014 16:17:38 +0200 Subject: [PATCH] [BUGFIX] Fixes repeating animation issue in IE 11 and below See: https://github.com/miguel-perez/jquery.smoothState.js/issues/26 Next try ... This one has one problem but works good so far. $element ist forced to height: auto;. Any suggestions? I have tested IE 11,10,9,8, Chrome 36 and FF 31 on Win 8.1. I cannot see any problems with it, please test it as well. --- jquery.smoothState.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jquery.smoothState.js b/jquery.smoothState.js index e5135e2..23a692a 100644 --- a/jquery.smoothState.js +++ b/jquery.smoothState.js @@ -271,9 +271,8 @@ /** Forces browser to redraw elements */ redraw: function ($element) { - $element.hide(0, function() { - $(this).show(); - }); + $element.height(0); + setTimeout(function(){$element.height('auto');}, 0); } },