diff --git a/js/angular/directive/tab.js b/js/angular/directive/tab.js index 3cb393a453..e1c82c84fc 100644 --- a/js/angular/directive/tab.js +++ b/js/angular/directive/tab.js @@ -75,17 +75,19 @@ function($compile, $ionicConfig, $ionicBind, $ionicViewSwitcher) { var childElementCount = tabContentEle.childElementCount; element.empty(); - var navViewName; + var navViewName, isNavView; if (childElementCount) { if (tabContentEle.children[0].tagName === 'ION-NAV-VIEW') { // get the name if it's a nav-view navViewName = tabContentEle.children[0].getAttribute('name'); + tabContentEle.children[0].classList.add('view-container'); + isNavView = true; } if(childElementCount === 1) { // make the 1 child element the primary tab content container tabContentEle = tabContentEle.children[0]; } - tabContentEle.classList.add('pane'); + if (!isNavView) tabContentEle.classList.add('pane'); tabContentEle.classList.add('tab-content'); }