Material: md-card - problems in Internet Explorer

Created on 10 Dec 2015  路  8Comments  路  Source: angular/material

I'm experiencing problems with md-cards in Internet Explorer 11. The attached screenshot shows angular-materials's demo site, however, I'm having the same issue with my project.
ng-material-issue
The md-card-title-element seems to have a height of 0. Is there any known workaround for this problem?

Thanks guys.

flexbox

Most helpful comment

flex="initial" is your friend
http://codepen.io/anon/pen/XXbLmw

All 8 comments

flex="initial" is your friend
http://codepen.io/anon/pen/XXbLmw

Thank you very much! Works like a charm.

+1

I met the same problem in my electron app(chrome 47.0.2526.73).And flex="initial" works for me.Thanks!

I have this problem in Chrome too (opened a stack overflow question about it at https://stackoverflow.com/questions/35028680/angular-material-simple-card-title-not-sizing-correctly-in-chrome)

flex="initial" fixed the issue for me too. Is this actually a bug, or a misunderstanding on my part about how flexbox works?

IE has minimal support for flexbox. We are working to improve the Layout API and account for such issues. Meanwhile _manual_ fixes like ^^ are important.

@ThomasBurleson Sorry for not being clear: I am seeing this issue in Chrome, not Internet Explorer.

EDIT:

    <md-card>
        <md-card-title>
            <md-card-title-text>
                <span class="md-headline">Icon action buttons</span>
            </md-card-title-text>
        </md-card-title>
        <md-card-content>
            <p>The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well...</p>
        </md-card-content>
    </md-card>

Looks like this in chrome:
img

if you're having this issue on Chrome, too:

md-card-title {
  flex: initial!important;
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

bobber205 picture bobber205  路  3Comments

rtprakash picture rtprakash  路  3Comments

LeoLozes picture LeoLozes  路  3Comments

buzybee83 picture buzybee83  路  3Comments

chriseyhorn picture chriseyhorn  路  3Comments