Update ionTabs.js

According to Ionic documentation:
"For iOS, tabs will appear at the bottom of the screen. For Android, tabs will be at the top of the screen, below the nav-bar."
http://ionicframework.com/docs/api/directive/ionTabs/

This change makes meteoric more consistent with Ionic making the UX closer to the native one.
This behavior can be prevented by passing any string to the style attribute, e.g. style="none", like in Ionic $ionicConfigProvider
http://ionicframework.com/docs/api/provider/$ionicConfigProvider/#tabs.style
This commit is contained in:
Luca Adalberto Vandro 2015-06-18 02:09:22 +02:00
parent 254fbe7f56
commit eb9ef9e234

View file

@ -31,11 +31,11 @@ Template.ionTabs.helpers({
classes.push(this.class);
}
if (this.style === 'android') {
if (this.style === 'android' || ( !this.style && Platform.isAndroid()) ) {
classes.push('tabs-top tabs-striped tabs-icon-left');
}
if (this.style === 'ios') {
if (this.style === 'ios' || ( !this.style && Platform.isIOS()) ) {
classes.push('tabs-icon-top');
}