Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title is truncated in navbar #945

Closed
RaoKarthik opened this issue Mar 28, 2014 · 29 comments
Closed

Title is truncated in navbar #945

RaoKarthik opened this issue Mar 28, 2014 · 29 comments
Milestone

Comments

@RaoKarthik
Copy link

The title is truncated in navigation bar when the view is rendered for the first time and back button goes missing occasionally.
The issue started after updating to beta

screen shot 2014-03-28 at 4 14 08 pm
screen shot 2014-03-28 at 4 15 27 pm
screen shot 2014-03-28 at 4 15 45 pm
screen shot 2014-03-28 at 4 14 30 pm

@ajoslin
Copy link
Contributor

ajoslin commented Mar 28, 2014

Hi @RaoKarthik, thanks for the issue report.

Would you be able to create a reproduce scenario for the back button bug, and the title truncation bug? I'm not able to reproduce either.

Here's a good starting point: http://codepen.io/ionic/pen/vBeqF

@RaoKarthik
Copy link
Author

Hi @ajoslin, the issue occurs when rendered in ios, works fine in android

@RaoKarthik
Copy link
Author

Hi @ajoslin to reproduce the scenario of the title truncation bug you can directly build the app using sidemenu and run it in iphone.
img_7132
img_7133

@ajoslin
Copy link
Contributor

ajoslin commented Apr 1, 2014

OK @RaoKarthik, will look at this later today or tomorrow. Thanks.

@calendee
Copy link

calendee commented Apr 2, 2014

@ajoslin Look at my comment here:

#932 (comment)

It shows the problem based on a basic CLI project.

ios simulator screen shot apr 2 2014 5 17 42 pm

@mhartington
Copy link
Contributor

@ajoslin, is there any status update on this?

@ajoslin ajoslin added this to the 1.0.0-beta.2 milestone Apr 8, 2014
@ajoslin
Copy link
Contributor

ajoslin commented Apr 8, 2014

I'll work on this now, forgot about it!

@ajoslin ajoslin changed the title Title is truncated in navigation bar Title is truncated in navbar Apr 8, 2014
@ajoslin
Copy link
Contributor

ajoslin commented Apr 8, 2014

OK, I pushed a fix - it fixes the problem in my local tests. Would you guys be able test it out with the nightly build?

@calendee
Copy link

calendee commented Apr 8, 2014

Didn't work for me.

My steps :

Still getting :
ios simulator screen shot apr 8 2014 3 24 43 pm

@ajoslin
Copy link
Contributor

ajoslin commented Apr 8, 2014

Thanks for all the work to reproduce Justin!!

I just did the same and didn't experience the problem! Maybe the cdn only just updated itself. Could you try again (again)? Hint: just replace the <script src> in your www/index.html with <script src="http://code.ionicframework.com/nightly/js/ionic.bundle.js"></script>

@calendee
Copy link

calendee commented Apr 8, 2014

That did the trick. I must have just gotten an old version.

The title no longer truncates.

@ajoslin
Copy link
Contributor

ajoslin commented Apr 8, 2014

Awesome!

@ajoslin ajoslin closed this as completed Apr 8, 2014
@calendee
Copy link

@ajoslin "They're back!".

In the nightlies, the truncated title is coming back on Chrome and iOS.

This is the "side menu" starter from "Getting Started" modified to use the nightlies.

NOTE : The title only truncates on the first load. After navigation, the title no longer truncates.

truncated-title

@ajoslin
Copy link
Contributor

ajoslin commented Apr 16, 2014

Hey @calendee,

Not getting this in Chrome or iOS sim for the sideMenu starter.

@mhartington
Copy link
Contributor

Seems someone else is reporting the same thing from the forum, they haven't gotten back to me about which version of ionic they are using.

http://forum.ionicframework.com/t/weird-navigation-bar-when-loaded-in-ios-emulator-and-sidemenu-starter-template/3065

@keithdmoore
Copy link
Contributor

I just updated the forum post with this comment:

I can confirm this occurs in the nightly. Using Chrome emulate iPhone 5, as well as an actual iPhone 5s device. Its generates this H1.

h1 class="title ng-binding" ng-bind-html="title" style="left: 116px; right: 116px;">Awesome Page

@mypark
Copy link

mypark commented Apr 21, 2014

when will this get put into the stable build release?

@calendee
Copy link

Seems it's in the nightlies now. I think we can keep this closed

@ajoslin
Copy link
Contributor

ajoslin commented Apr 25, 2014

Stable release is coming soon.

@raphaklaus
Copy link

v1.0.0-beta.13, this happens only with level screens, when "Back" button has a bigger name, like "Previous", and the title has a bigger name too.

@theentirety
Copy link

Been having this same truncation issue since updating to Ionic 1.2.4. It will truncate any text that is too long to just a character or two. Typically only happens with dynamic text populated by angular.

screen shot 2016-01-31 at 14 32 58

@thanhnh-infinity
Copy link

Is there any available solution for this issue ?

@select-group
Copy link

This commit by @krulik stopped text from getting cut off for me.

@Louis-P
Copy link

Louis-P commented Mar 18, 2016

+1

@svnindia
Copy link

svnindia commented Jun 27, 2016

Found a WorkAround #4661 (comment)

@mypark
Copy link

mypark commented Jun 28, 2016

Should be fixed in the new build I think - issue was closed.

On Jun 27, 2016, at 9:19 AM, sanjithkumar venkatesan notifications@github.com wrote:

any solution found ?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #945 (comment), or mute the thread https://github.com/notifications/unsubscribe/AAcslNW5oBu39OMn6FOm1UPG76jAd2Dwks5qP83sgaJpZM4BttXU.

@mdanics
Copy link

mdanics commented Aug 20, 2018

I am experiencing this same issue with Ionic Framework : ionic-angular 3.9.2 .

Any way to fix this?

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 19, 2018

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 ionitron-bot bot locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests