Skip to content

Commit

Permalink
[BUGFIX] Fixes repeating animation issue in IE 11 and below
Browse files Browse the repository at this point in the history
See: #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.
  • Loading branch information
geldmacher committed Aug 16, 2014
1 parent 04c7a30 commit 82ce4cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jquery.smoothState.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},

Expand Down

0 comments on commit 82ce4cd

Please sign in to comment.