Merge pull request #267 from cedla/master

Top ionTabs with multiple CSS classes doesn't add 'has-tabs-top' to the content
This commit is contained in:
Nick Wientge 2015-08-07 08:12:12 -07:00
commit 4164f04371

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);