-
Notifications
You must be signed in to change notification settings - Fork 6.8k
MatSelect: Long options are truncated #7211
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
related #3883 |
Currently, when the text of an option is truncated, it ends up removing everything except the ellipsis on Firefox, IE and Edge. These changes fix the truncation and simplify the option view. Relates to angular#7211.
Currently, when the text of an option is truncated, it ends up removing everything except the ellipsis on Firefox, IE and Edge. These changes fix the truncation and simplify the option view. Relates to #7211.
Currently, when the text of an option is truncated, it ends up removing everything except the ellipsis on Firefox, IE and Edge. These changes fix the truncation and simplify the option view. Relates to angular#7211.
Currently, when the text of an option is truncated, it ends up removing everything except the ellipsis on Firefox, IE and Edge. These changes fix the truncation and simplify the option view. Relates to angular#7211.
Currently, when the text of an option is truncated, it ends up removing everything except the ellipsis on Firefox, IE and Edge. These changes fix the truncation and simplify the option view. Relates to #7211.
I want to add a tooltip on this "mat-option-text" as workaround, is there any way we could know the text is truncated or not? |
@UncleJimmy I've seen this workaround :
From this link But I didn't succeeded on getting the propeties from an element node, i'm stuck to this point :
|
Just find out you can do this :
It works well, but it evaluates according to the number of caracters and not if the text is ellipsed or not |
The MDC-based version of This is in material-experimental now and will eventually replace the existing |
Hi.. was anyone able to find solution to Resizing the mat-option with height and line-height for the mat-autocomplete alters the autocomplete keyboard scrolling #10038 ? |
I also need this bug #10038 to be fixed. I wonder why it was closed? |
It was marked as duplicate. |
Text wraps instead of truncating in the MDC based select component coming soon in v15, I am closing this bug. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Options should wrap or be shown in some way that does not hide the option text from the user.
What is the current behavior?
Long option text is truncated.
What are the steps to reproduce?
http://plnkr.co/edit/X8JZAatPpRD6RBSRgT7K?p=preview
What is the use-case or motivation for changing an existing behavior?
Text can be long in options, the user should not have the option text hidden from them.
For translated text that is longer than the source text this can happen more frequently.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Latest
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: