Skip to content

Commit

Permalink
fix(ionFooterBar): allow align-title to be used on ion-footer-bar
Browse files Browse the repository at this point in the history
Closes #4297. Closes #3966
  • Loading branch information
zebulgar authored and mhartington committed Sep 1, 2015
1 parent 165944f commit ef1b600
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/angular/directive/headerFooterBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ function headerFooterBarDirective(isHeader) {
$scope.$watch('$hasTabs', function(val) {
$element.toggleClass('has-tabs', !!val);
});
ctrl.align();
$scope.$on('$ionicFooter.align', function() {
ionic.requestAnimationFrame(function() {
ctrl.align();
});
});
}
}
}
Expand Down
1 change: 1 addition & 0 deletions js/angular/service/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl
self.scope.$parent && self.scope.$parent.$broadcast(self.viewType + '.shown', self);
self.el.classList.add('active');
self.scope.$broadcast('$ionicHeader.align');
self.scope.$broadcast('$ionicFooter.align');
}, 20);

return $timeout(function() {
Expand Down

0 comments on commit ef1b600

Please sign in to comment.