Ion-tabs on TOP of the screen

The result on IOS or Android is ok;

But the result on a web browser (Chrome or Firefox) is different, the content is behind the tabs and the tabs are chopped off by the navbar…

depends on your code… any code examples? a codepen would be the best.

<ion-tabs class="tabs-icon-top tabs-balanced">
  <ion-tab title="{{'Table view' | translate}}" icon="ion-compose" ng-click="goTab('workforce')">
    <ion-nav-view name="workforce"></ion-nav-view>

  <ion-tab title="{{'Calendar view' | translate}}" icon="ion-android-calendar" ng-click="goTab('calendar')">
    <ion-nav-view name="calendar"></ion-nav-view>

  <ion-tab title="{{'List view' | translate}}" icon="ion-ios-list-outline" ng-click="goTab('list')">
    <ion-nav-view name="list"></ion-nav-view>

Did you tried add this class: “tabs-top” to ion-tabs?

Here the problem seems to be the content, am I wrong?

If the problem is that the content is behind the header+tabs you maybe could try with:
class=“has-subheader” has-header=“true”

in ion-content.

i add the two class, but ion-tabs is always hidden… :frowning:

I think you might need to use ion-nav bar in your index.html first, then use simply ion-view, I had that same problem.Then I broke up my templates in to separate ones, set my index to:

 <body ng-app="app">
<ion-nav-bar class="bar-positive"> 

That is my whole index. I setup a tabs.html where I setup the tabs separately

<ion-tabs class="tabs-icon-top tabs-positive">
        <ion-tab title="Feed" icon="ion-ios-list" ui-sref="tabs.feed">
          <ion-nav-view name="feed-tab"></ion-nav-view>
    <ion-tab title="Home" icon="ion-home" ui-sref="tabs.home">
          <ion-nav-view name="home-tab"></ion-nav-view>
        <ion-tab title="Cars" icon="ion-android-car" ui-sref="tabs.Cars">
          <ion-nav-view name="Cars-tab"></ion-nav-view>

Then individual templates start with Feed.html

 <ion-view view-title="Feed" view-name="feed-tab">
<ion-pane padding="true">

Also ionic automatically sets up tabs to bottom when testing on ios phones and top for android, try running them emulated and see if you get anything. I hope this helps.

1 Like