Lately i’ve been struggling to fix a small problem with the title in my navbar. Basically, the title in my navar are slightly misplaced on the right and not centered, this happens only on Android.
Also this happens only when a sidemenu button is present, otherwise the title is centered correctly.
Here’s the code:
<ion-header>
<ion-navbar>
<button ion-button menuToggle left >
<ion-icon name="menu"></ion-icon>
</button>
<ion-title text-center>{{ titolo }}</ion-title>
</ion-navbar>
</ion-header>
The main reason is that i have the toggleMenu button on the left side of the navbar. I thought Ionic fixed this automatically when using the “text-center” property in the view. (iOS does indeed).
Before trying to fix the problem with weird workarounds i’d like to know what’s the proper way to deal with this or if this is simply a bug.