fix(ionNavBar): adjust has-header if ionNavBar is hidden

Fixes #927.
This commit is contained in:
Andy Joslin
2014-03-27 06:49:13 -06:00
parent 75290a3ea0
commit 41b73abf40
2 changed files with 14 additions and 4 deletions

View File

@@ -144,6 +144,7 @@ function($scope, $element, $attrs, $ionicViewService, $animate, $compile, $ionic
this.showBar = function(show) {
$scope.isInvisible = !show;
$scope.$parent.$hasHeader = !!show;
};
this.setTitle = function(title) {
@@ -290,7 +291,6 @@ function($ionicViewService, $rootScope, $animate, $compile) {
$scope.shouldAnimate = true;
$scope.isReverse = false;
$scope.isInvisible = true;
$scope.$parent.$hasHeader = true;
$scope.$on('$destroy', function() {
$scope.$parent.$hasHeader = false;