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

Commit

Permalink
fix(mdCard): Fix card image height in IE.
Browse files Browse the repository at this point in the history
In IE11, the height of the card image was not properly displaying
proportinally to the width due to
https://github.com/philipwalton/flexbugs#1-minimum-content-sizing-of-flex-items-not-honored.

Fix by setting the image to use flex layout itself instead of just
width.

Tested in IE11, Edge, Chrome, Safari & Firefox.

Fixes #761.
  • Loading branch information
topherfangio committed Oct 12, 2015
1 parent 88d2a09 commit f54275a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ md-card {

> img,
> :not(md-card-content) img {
display: flex;
flex: 0 0 auto;
width: 100%;
height: auto;
}

md-card-content {
Expand Down

0 comments on commit f54275a

Please sign in to comment.