Markup:
<ion-side-menus>
<ion-pane ion-side-menu-content>
<ion-nav-bar class="navigation-bar">
<ion-nav-buttons side="left">
<ion-nav-back-button class="button-clear">
<i class="icon ion-ios7-arrow-back"></i>
</ion-nav-back-button>
</ion-nav-buttons>
<ion-nav-buttons side="right">
<button menu-toggle="right" class="button button-icon icon ion-navicon"></button>
</ion-nav-buttons>
</ion-nav-bar>
<ion-nav-view name="menuContent" class="home">
</ion-nav-view>
</ion-pane>
<ion-side-menus>
Rendered:
<ion-nav-bar class="navigation-bar bar bar-header nav-bar nav-title-slide-ios7 disable-user-behavior">
<ion-nav-buttons side="left" style="display: none;"></ion-nav-buttons>
<ion-nav-buttons side="right" style="display: none;"></ion-nav-buttons>
<div class="buttons left-buttons">
<span class="">
<ion-nav-back-button class="button-clear button back-button">
<i class="icon ion-ios7-arrow-back"></i>
</ion-nav-back-button>
</span>
</div>
<h1 class="title ng-binding" ng-bind-html="title" style="left: 52px; right: 52px;">Perfil</h1>
<div class="buttons right-buttons">
<span class="">
<button menu-toggle="right" class="button button-icon icon ion-navicon"></button>
</span>
</div>
</ion-nav-bar>
When rendered, the button is misplaced, and I have to add the following css:
.navigation-bar .buttons.left-buttons {
position: absolute;
top: 5px;
bottom: 5px;
left: 5px;
}
Am I doing something wrong?
- Edited to fix the rendered markup