Reputation: 149
I'm creating an app with the Ionic framework and cordova. I recently uploaded my app to test it out but noticed something. On android the title in the top bar is not aligned vertically. Is there any way to change this?
Upvotes: 1
Views: 1093
Reputation: 11
It's android problem so I made style for android only. It worked for me!
.platform-android .bar .title {
line-height: 52px !important;
}
Upvotes: 1
Reputation: 455
It will probably be a line-height
issue. Try making the line-height
of the element in which the text is contained in, or it's parent the same as the height of your top bar.
Try looking at the below classes and make sure the line-height
and the height
match up.
.bar .title
.bar
Upvotes: 0