I have a main tab, which just shows the list of items. and settings tab which has nested view for setting different configs.
If I navigate in this particular order, the back button is shown incorrectly, or if it is to be shown, the title doesn't get left: 37px
This is how I am creating the nav bar.
<ion-nav-bar class="bar-stable no-animation" align-title="left">
<ion-nav-back-button class="button-icon icon ion-ios7-arrow-back"></ion-nav-back-button>
</ion-nav-bar>

Is there a solution, either to clear the history of that tab, so while clicking back on it opens the main settings tab instead of the previously opened nested view? Or if it needs to be shown, it should properly calculate the left of title.
Here's a codepen demo. Click on tabs in this order.
1. On main page, click on Scientific Facts
2. After view changes, click on Contacts tab
3. Then click on Home tab again. It reproduces the behavior.
Update:
So far what I found is that there's a $scope.$watch which is deciding whether to show or hide back button. and this gets triggered late (after calculation and alignment of title). Hence the while calculating, leftWidth doesn't get back button's width.