Skip to content

Commit

Permalink
fix(viewSwitcher): reflow issue. Fixes #4782
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Dec 14, 2015
1 parent ea655d6 commit d0246cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/angular/service/viewSwitcher.js
Expand Up @@ -191,8 +191,11 @@ function($timeout, $document, $q, $ionicClickBlock, $ionicConfig, $ionicNavBarDe
if (renderStart && renderEnd) {
// CSS "auto" transitioned, not manually transitioned
// wait a frame so the styles apply before auto transitioning
ionic.requestAnimationFrame(onReflow);
$timeout(function() {
ionic.requestAnimationFrame(onReflow);
})

//$timeout(onReflow, 16);
} else if (!renderEnd) {
// just the start of a manual transition
// but it will not render the end of the transition
Expand Down

0 comments on commit d0246cf

Please sign in to comment.