In a view with a title and a subtitle, the contents of the subtitle overlap the contents of the view.
Slide menu title
<ion-nav-buttons side="left"> <button class="button button-icon button-clear ion-navicon" menu-toggle="left" ng-hide="$exposeAside.active"></button> </ion-nav-buttons> </ion-nav-bar> <ion-nav-view name="menuContent" animation="slide-left-right"></ion-nav-view>
Subheading in view
<ion-header-bar align-title="center" class="bar bar-subheader custom bar-energized" ng-if="datos.subTitulo"> <div class="buttons"> <a class="ion-chevron-left" href="#/app/ranking/ubicacion/{{datos.divAnt}}" ng-if="datos.divAnt"></a> </div> <h2 class="subtitle">{{datos.subTitulo}}</h2> <div class="buttons"> <a class="ion-chevron-right" href="#/app/ranking/ubicacion/{{datos.divSig}}" ng-if="datos.divSig"></a> </div> </ion-header-bar>
The Dvis buttons in the overlapping contents of the sub-header, h2 show 100%. Is there something missing in this code? Thanks

[EDIT] Rewrote the code according to my needs: the title is smaller than the title with two links in the corners and the title.
<ion-header-bar align-title="center" class="bar-subheader subheader_custom bar-energized"> <div class="button button-clear"> <a class="icon ion-ios-arrow-back blanco" href="#/app/ranking/ubicacion/{{datos.divAnt}}" ng-if="datos.divAnt"></a> </div> <div class="h2 title title_custom">{{datos.subTitulo}}</div> <div class="button button-clear"> <a class="icon ion-ios-arrow-forward blanco" href="#/app/ranking/ubicacion/{{datos.divSig}}" ng-if="datos.divSig"></a> </div> </ion-header-bar>
Add this css:
.has-subheader { top: 70px; } .bar-subheader.subheader_custom { display: block; height: 26px; top: 44px; } .title.title_custom { font-size: 16px; font-weight: 300; height: 20px; left: 0; line-height: 20px; margin: 2px 10px 2px 10px; min-width: 24px; overflow: hidden; position: absolute; right: 0; text-align: center; text-overflow: ellipsis; top: 0; white-space: nowrap; z-index: 0; }
Even buttons do not match the subtitle title. Any ideas?
New Status: 
html angularjs css ionic-framework
dblanco
source share