-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: Long dynamic header titles are cutoff #4661
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
Comments
Codepen demo please |
http://codepen.io/davidfrahm/pen/vNPoVa Make the viewport really small, reload the page, then click the button to navigate to the view with long/broken title |
Any news on this? Same issue as #945 which was reopened. No feedback on that one either |
+1 |
+1. I met the same problem |
+1 . Yes, this issue has no longer fixed completely for long time |
+1 |
1 similar comment
+1 |
thanks @DavidFrahm for the codepen! We are definitely gonna have to take a look at this. It looks like the title is overflowing way too early, is that the issue you all are describing? |
@jgw96 Yes, that sounds like one way to look at it. Honestly, it's been a long time and I've just become used to it and always use the CSS workaround in all my projects. |
Happens for me too |
+1 any workarounds? |
Here is my workaround.
|
Great thanks! |
What screenshot? I am having no issue with back button overlap with this solution. |
ion-nav-title will fill up available space #4661
Hello everyone, This fix will be in the nightly build tonight. Full disclosure - there are several fixes we could do make with the header, this is a start. If you dynamically add buttons next to this, you may still run into problems. That is a separate issue that we need to fix as well. Please test and let me know how it goes. The easiest way to test is to download the nightly ionic.bundle.js file and place it in your project's lib/ionic/js directory, and then make sure your html file is importing the file correctly. If needed, we'll reopen this. Thanks, |
Hello, |
The issue is actually that it use the first element with the var children = angular.element(element).children();
for ( var i = 0; i < children.length; i++ ) {
var child = angular.element(children[i]);
if ( child.hasClass('nav-bar-title') && !child.hasClass('hide') ) {
element = children[i];
break;
}
} Thanks @magaliegimenes for the hint! |
Facing this issue on Ionic 3.9.2 after using the SideMenu starter project |
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. |
Type: bug
Platform: ios 7 webview
In multiple Ionic apps where I need to set the view title dynamically, I use this markup:
That works great until it encounters a view title that too long to fit in the bar (easier to test on smaller devices like iPhone 4/5). With a long value, it displays just like one character and the ellipsis.
I fix it by adding this to my scss:
This seems like it might just be an issue with the Angular lifecycle of things, and might not be a clean fix on the Ionic side. (Similar to the issue of why
view-title="{{category.name}}"
has issues.)The text was updated successfully, but these errors were encountered: