-
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
mdListItem height auto-adjust #4114
Comments
#4071 It's not a bug |
@gedclack I don't see anything about list items in the issue you linked. After updating to from Angular 2.4.0 and Material 2.0.0-beta.2 to Angular 4.0.2 and Material 2.0.0-beta.3 I now see the same behavior. To "fix" it, I instead use an md-card with a md-card-content per setting. But if this new behavior is a bug, I'd be interested to know. |
I think this is resolved in the latest version. Feel free to re-open if it's not. |
@jelbourn |
workaround 1:
workaround 2:
(material applies 'mat-multi-line' class when there are more than 3 matLine) (IMHO we probably need something like MatFitContent directive on mat-list-item that does the same) |
When can we expect this issue to be fixed? |
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:
Not sure if its a bug
What is the expected behavior?
mdListItem should adjust its height based on the the contents projected inside it
What is the current behavior?
Looks like the height of each mdListItem is fixed
What are the steps to reproduce?
http://embed.plnkr.co/loTqOC/
Here I have added an image to mdListItem and I expect the height of mdListItem to increase to accommodate the image
What is the use-case or motivation for changing an existing behavior?
I have a custom component showing Friend_Info. I want to list all the friends using mdList. Each mdListItem will have a checkbox and Friend_Info component.
Which versions of Angular, Material, OS, browsers are affected?
Angular4 Material2
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: