diff --git a/ionic/components/app/structure.scss b/ionic/components/app/structure.scss index 4af59411db..d24e572759 100644 --- a/ionic/components/app/structure.scss +++ b/ionic/components/app/structure.scss @@ -45,10 +45,11 @@ ion-tab { width: 100%; height: 100%; overflow: hidden; + flex-direction: column; display: none; &.show-tab { - display: block; + display: flex; } } diff --git a/ionic/components/tabs/tab.js b/ionic/components/tabs/tab.js index 2a205674d0..8cdbf89913 100644 --- a/ionic/components/tabs/tab.js +++ b/ionic/components/tabs/tab.js @@ -1,6 +1,5 @@ import {Parent} from 'angular2/src/core/annotations_impl/visibility'; -import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations'; -import {View} from 'angular2/src/core/annotations_impl/view'; +import {Directive} from 'angular2/src/core/annotations_impl/annotations'; import {ElementRef} from 'angular2/src/core/compiler/element_ref'; import {DynamicComponentLoader} from 'angular2/src/core/compiler/dynamic_component_loader'; import {Injector} from 'angular2/di'; @@ -39,8 +38,6 @@ export class Tab { this.nav = new NavBase(loader, injector); this.domElement = elementRef.domElement; - this.config = Tab.config.invoke(this); - this.id = util.nextUid(); this.contentId = 'tab-content-' + this.id; this.labeledBy = 'tab-button-' + this.id; @@ -62,15 +59,3 @@ export class Tab { } } - -new IonicComponent(Tab, {}); - - -@Directive({ - selector: '[content-anchor]' -}) -class ContentAnchor { - constructor(@Parent() tab: Tab, elementRef: ElementRef) { - tab.setRef(elementRef); - } -} diff --git a/ionic/components/tabs/tabs.js b/ionic/components/tabs/tabs.js index b8b7def17f..92095a2b11 100644 --- a/ionic/components/tabs/tabs.js +++ b/ionic/components/tabs/tabs.js @@ -22,7 +22,7 @@ import {TabButton} from './tab-button'; template: `