meteoric / meteor-ionic

Ionic components for Meteor. No Angular!
http://meteoric.github.io
MIT License
1.51k stars 219 forks source link

alignTitle on ionNavBar not working #359

Closed Loschcode closed 8 years ago

Loschcode commented 8 years ago

I'm trying to do something like {{> ionNavBar alignTitle="left"}} to force the title to be on the left but it doesn't seem to work. The only way I got it working was to do it manually without meteor-ionic

<!-- Header : Title -->
{{#contentFor "headerTitle"}}

  <h1 class="title title-center">My Awesome Title</h1>

{{/contentFor}}

It works, but it's not using the system which break all flexibility. Did I do something wrong or isn't it working for real ?

pcavadas commented 8 years ago

The problem is the same as #292. A pull request has been submitted, but it still hasn't been merge yet.

For now, there a 2 little tricks you can do:

<h1 class="title title-left">My Awesome Title</h1>
Template.ionNavBar.onCreated(function () {
    this.alignTitle = 'left';
});
Loschcode commented 8 years ago

Well it's not working on Android whatsoever, took me the night to figure that out, ok for the duplicate issue