Fix for content not having 'has-tabs-top' class when using top ionTabs with multiple CSS classes

This commit is contained in:
cedla 2015-08-07 12:46:49 +02:00
parent eff0d8495f
commit b61ca83113

View file

@ -3,7 +3,7 @@ Template.ionTabs.created = function () {
};
Template.ionTabs.rendered = function () {
if ((this.data.class && this.data.class === 'tabs-top') || this.data.style === 'android' || ( !this.data.style && Platform.isAndroid())) {
if ((this.data.class && this.data.class.indexOf('tabs-top') > -1) || this.data.style === 'android' || ( !this.data.style && Platform.isAndroid())) {
Session.set('hasTabsTop', true);
} else {
Session.set('hasTabs', true);