ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Ion Header Bar Title off center until view is refreshed

Open ButchMonkey opened this issue 10 years ago • 5 comments

Short description of the problem:

Ion Header Bar Title off center even with center in config. I have set the title to center using -

$ionicConfigProvider.navBar.alignTitle('center'); 

However the css applied is right: 5px; left: 55px; until I refresh the view, then it becomes right: 55px; left: 55px; and centers correctly.

Does not appear to happen on browser, only compiling and running the app seems to cause the issue ( I then connect with remote debugger for css info)

What behavior are you expecting?

Title bar should be center on first load not after refreshing the view. corresponds to right: 55px; left: 55px; css

Which Ionic Version? Ionic, v1.3.0 Cordova CLI: 6.2.0

Plunker that shows an example of your issue

N / A due to not occurring in browser, am using cross walk if this has any affect? Dont see why it would if its okay after refreshing the view.

Can link to cloud environment if needed

ButchMonkey avatar Nov 06 '16 20:11 ButchMonkey

Having similar problem. Strangely enough when I run through ionic serve I cannot see it happening, but in lab mode it occurs ionic serve --lab, but ONLY for Android. iOS is fine for some reason.

mmaask avatar Nov 24 '16 11:11 mmaask

I ended up forcing it with css, dont really like to do that but had no choice

ButchMonkey avatar Nov 26 '16 22:11 ButchMonkey

I found a cause and current solution for my case at least. It seems that the animated transition CSS for Android is having some issues. By using the "ios" transitions it works fine. You can try this.

$ionicConfigProvider.views.transition("ios");

mmaask avatar Nov 27 '16 07:11 mmaask

This issue was moved to driftyco/ionic-v1#72

jgw96 avatar Jan 13 '17 21:01 jgw96

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 05 '18 00:09 ionitron-bot[bot]