Skip to content

Commit

Permalink
Forcing layout more reliably
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed Feb 6, 2014
1 parent b7a1db4 commit cd7b7da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/mankini/utils.js
Expand Up @@ -38,10 +38,8 @@ $.fn.fullHeight = function() {

if ( animate ) {
$item.on( transitionend, complete ).addClass( animateClassName );

requestAnimationFrame(function() {
$item.addClass( className );
});
$item[0].offsetWidth;
$item.addClass( className );
}
else {
$item.addClass( className );
Expand Down

0 comments on commit cd7b7da

Please sign in to comment.