Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(list): only fill minimum required height.
Browse files Browse the repository at this point in the history
* 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 #8956.

Closes #9045
  • Loading branch information
devversion authored and ThomasBurleson committed Jul 16, 2016
1 parent 4efafcf commit 8000c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ md-list-item {
.md-list-item-inner {
// The list item content should fill the complete width.
width: 100%;
height: 100%;
min-height: inherit;
}

}
Expand Down

0 comments on commit 8000c8e

Please sign in to comment.