Skip to content

Commit d0246cf

Browse files
committed
fix(viewSwitcher): reflow issue. Fixes #4782
1 parent ea655d6 commit d0246cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: js/angular/service/viewSwitcher.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,11 @@ function($timeout, $document, $q, $ionicClickBlock, $ionicConfig, $ionicNavBarDe
191191
if (renderStart && renderEnd) {
192192
// CSS "auto" transitioned, not manually transitioned
193193
// wait a frame so the styles apply before auto transitioning
194-
ionic.requestAnimationFrame(onReflow);
194+
$timeout(function() {
195+
ionic.requestAnimationFrame(onReflow);
196+
})
195197

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

0 commit comments

Comments
 (0)