From d0246cf975bb4022eb890d3b0c28964e3065644c Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 14 Dec 2015 15:28:41 -0600 Subject: [PATCH] fix(viewSwitcher): reflow issue. Fixes #4782 --- js/angular/service/viewSwitcher.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/angular/service/viewSwitcher.js b/js/angular/service/viewSwitcher.js index 8631db3230b..2396d2613b0 100644 --- a/js/angular/service/viewSwitcher.js +++ b/js/angular/service/viewSwitcher.js @@ -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