From 3bcda3f2f1de7510525f4e64d838d6d68403e34a Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 4 Dec 2014 15:11:14 -0600 Subject: [PATCH] fix(modal): align header title after viewable --- js/angular/directive/headerFooterBar.js | 3 +++ js/angular/service/modal.js | 23 ++++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/js/angular/directive/headerFooterBar.js b/js/angular/directive/headerFooterBar.js index fe50adb9c2..ce6b0b3e1d 100644 --- a/js/angular/directive/headerFooterBar.js +++ b/js/angular/directive/headerFooterBar.js @@ -140,6 +140,9 @@ function headerFooterBarDirective(isHeader) { delete $scope.$hasSubheader; }); ctrl.align(); + $scope.$on('$ionicHeader.align', function() { + ctrl.align(); + }); } else { $scope.$watch(function() { return $element[0].className; }, function(value) { diff --git a/js/angular/service/modal.js b/js/angular/service/modal.js index d70fce8b0b..0362400f75 100644 --- a/js/angular/service/modal.js +++ b/js/angular/service/modal.js @@ -18,7 +18,7 @@ * * - This example assumes your modal is in your main index file or another template file. If it is in its own * template file, remove the script tags and call it by file name. - * + * * @usage * ```html *