From 879003961894bca3e80bb40a976ccdfeae1eaa98 Mon Sep 17 00:00:00 2001 From: Francis Poirier Date: Mon, 20 Jul 2015 12:44:24 -0400 Subject: [PATCH] Session set `hasTabsTop` to true when Platform is Android Since the `tabs-top` class can be set based on the Platform in the helper then the `Session.get('hasTabsTop')` needs to be set properly. --- components/ionTabs/ionTabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ionTabs/ionTabs.js b/components/ionTabs/ionTabs.js index 30e535f..8407a58 100644 --- a/components/ionTabs/ionTabs.js +++ b/components/ionTabs/ionTabs.js @@ -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') { + if ((this.data.class && this.data.class === 'tabs-top') || this.data.style === 'android' || ( !this.data.style && Platform.isAndroid())) { Session.set('hasTabsTop', true); } else { Session.set('hasTabs', true);