Skip to content

Commit

Permalink
Merge pull request #2826 from mikejpeters/bug/header-align
Browse files Browse the repository at this point in the history
fix($ionicHeader): call align() w/ no args on $ionicHeader.align
  • Loading branch information
adamdbradley committed Dec 31, 2014
2 parents 2480746 + 7387544 commit cb77f29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/angular/directive/headerFooterBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ function headerFooterBarDirective(isHeader) {
});
ctrl.align();
$scope.$on('$ionicHeader.align', function() {
ionic.requestAnimationFrame(ctrl.align);
ionic.requestAnimationFrame(function() {
ctrl.align();
});
});

} else {
Expand Down

0 comments on commit cb77f29

Please sign in to comment.