Previously for the width, the first element with the nav-bar-title class was used, but it can be the one hidden (cached) from the previous screen, used for animations, so the change was to check that we do not use the hidden one.
By the way, I also fixed spacing issue in refresher.js to allow starting the validation. The 17 broken unit tests were already broken before my fix (on OSX).
Short description of what this resolves:
Fix the computed nav bar title width.
Changes proposed in this pull request:
Previously for the width, the first element with the
nav-bar-title
class was used, but it can be the one hidden (cached) from the previous screen, used for animations, so the change was to check that we do not use the hidden one.By the way, I also fixed spacing issue in
refresher.js
to allow starting the validation. The 17 broken unit tests were already broken before my fix (on OSX).Ionic Version: 1.x
Fixes: #38 , https://github.com/driftyco/ionic/issues/4661