-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
MdSelect does not handle long text well #2440
Comments
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Dec 28, 2016
* Fixes long text not being trimmed inside of `md-option`, because the element is a flex container. Switches it to `display: block` and uses `line-height` to center the text. * Fixes the selected value not being trimmed, because the element doesn't have a defined width. Fixes angular#2440.
Thanks for the quick PR! |
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jan 19, 2017
* Fixes long text not being trimmed inside of `md-option`, because the element is a flex container. Switches it to `display: block` and uses `line-height` to center the text. * Fixes the selected value not being trimmed, because the element doesn't have a defined width. Fixes angular#2440.
mmalerba
pushed a commit
that referenced
this issue
Jan 20, 2017
* fix(select): not trimming long labels * Fixes long text not being trimmed inside of `md-option`, because the element is a flex container. Switches it to `display: block` and uses `line-height` to center the text. * Fixes the selected value not being trimmed, because the element doesn't have a defined width. Fixes #2440. * fix: menu icon alignment
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug, feature request, or proposal:
Bug
What is the expected behavior?
For long text to be truncated with ellipsis (at least that is what the styles seem to suggest).
What is the current behavior?
When the select is open the long text is clipped at the end instead of being displayed with an ellipsis.
When long text is selected the the text goes beyond the select (with the down arrow on top of the text) forever.
What are the steps to reproduce?
See the select: http://plnkr.co/edit/Tg3diW0HhFsDq29rWo4Y?p=preview
What is the use-case or motivation for changing an existing behavior?
Good behavior
Which versions of Angular, Material, OS, browsers are affected?
Latest, Latest, Ubuntu/ChromeOS, Chrome
The text was updated successfully, but these errors were encountered: