Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

md-card - problems in Internet Explorer #6217

Closed
slichte opened this issue Dec 10, 2015 · 8 comments
Closed

md-card - problems in Internet Explorer #6217

slichte opened this issue Dec 10, 2015 · 8 comments
Assignees

Comments

@slichte
Copy link

slichte commented Dec 10, 2015

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.

@Wardormeur
Copy link

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

@slichte
Copy link
Author

slichte commented Dec 11, 2015

Thank you very much! Works like a charm.

@Frank3K
Copy link
Contributor

Frank3K commented Dec 12, 2015

+1

@ThomasBurleson ThomasBurleson modified the milestone: Backlog Jan 5, 2016
@wbgbg
Copy link

wbgbg commented Jan 8, 2016

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

@Cakez0r
Copy link

Cakez0r commented Jan 27, 2016

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?

@ThomasBurleson
Copy link
Contributor

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.

@Cakez0r
Copy link

Cakez0r commented Jan 27, 2016

@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

@stephengardner
Copy link

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

md-card-title {
  flex: initial!important;
}

@Splaktar Splaktar removed this from the - Backlog milestone Feb 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants