Issue
This is my code, and I tried text-wrap , inside ion-header still can not show whole title.
<ion-header>
  <ion-toolbar text-wrap color="danger">
    <ion-buttons>
        <button ion-button navPop icon-only>
            <ion-icon ios="ios-arrow-back" md="md-arrow-back"></ion-icon>
        </button>
    </ion-buttons>
    <ion-title>{{new.title}}</ion-title>
  </ion-toolbar>
</ion-header>
Update
<ion-header>
  <ion-toolbar color="danger">
    <ion-buttons>
        <button ion-button navPop icon-only>
            <ion-icon ios="ios-arrow-back" md="md-arrow-back"></ion-icon>
        </button>
    </ion-buttons>
    <ion-item color="danger" text-wrap>
     <ion-title >{{new.title}}</ion-title>
    </ion-item>
  </ion-toolbar>
</ion-header>
I tried add ion-item there, but still not working for me.

Update 2
.ios .toolbar-title {
   text-overflow: inherit;
   white-space: normal;
   text-align: left;
   font-size:1.3em;
}
.md .toolbar-title {
   text-overflow: inherit;
   white-space: normal;
   text-align: left;
   font-size:1.3em;
}
Solution
Pls update your css file as below :
.toolbar-title {
   text-overflow: inherit;
   white-space: normal;
}
Edited:
Or
.toolbar-title {
   text-overflow: unset;
   white-space: unset;
}
Answered By - Mankeomorakort
 


0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.