-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-list-item: each item takes full height of the screen #8956
Comments
This should be fixed within It seems like I can't reproduce that in |
I'm seeing the same issue, and for the life of me can't reproduce it in a codepen. With 1.1.0-rc5 and with the current HEAD. Only on chrome, and only if a ng-click handler is set on the md-list-item. The problem seems to be that the
The parent has
But isn't on chrome for some reason. This seems to be a chrome layout bug; Its mysterious to me why it isn't triggered on codepen. |
@vbraun Pretty difficult, if we're not able to reproduce that on a codepen. Can you please provide some screenshots (DevTools / DOM etc.) ? |
So after a fun debugging session I found that this is because of a missing |
* The list currently always expects the list items inner content to have a height of `100%`. In some specific browser cases the inner content, will calculate the `100%` in relative to the top element. Which causes the list items to be as big as the browsers screen height. * The inner content, should only have a min-height, which is the same as the defined height on the `md-list-item` item. Just inheriting the min-height will automatically use the correct value. Fixes angular#8956.
@vbraun Thanks for the information. It helped me to reproduce your issue. |
FYI, adding appears to cause |
Each md-list-item takes the full height of the screen. Each md-list-item should take enough height of its content.
http://www.tutorialspoint.com/angular_material/angular_material_list.htm
Affected: Chrome 51 on Windows, Chrome 41 on Linux
Not affected: Firefox 47.01 Windows, Firefox 45.2 Linux
The text was updated successfully, but these errors were encountered: