material icon indicating copy to clipboard operation
material copied to clipboard

md-toast: content is not centred in IE11 for simple toast

Open lmignot opened this issue 11 years ago • 6 comments

This is only a problem since 0.11.0, simple toast worked fine on IE11 previously. md-toast with action and custom template work fine

The bug can be reproduced in the demo https://material.angularjs.org/HEAD/#/demo/material.components.toast and I've attached a screenshot (Windows 8.1 IE11.0.23)

md-toast ie11

lmignot avatar Sep 17 '15 12:09 lmignot

Seeing this too

danivicario avatar Sep 17 '15 12:09 danivicario

This fixes the problem of IE11.

Seems to work both for Chrome 35 and IE11 - In SASS

Might help you guys to spot the problem

md-toast {
  height: 0px;

  span {
    flex: none;
  }
}

danivicario avatar Sep 17 '15 13:09 danivicario

confirming that that works on my end, although I didn't need to set flex:none on the span element

lmignot avatar Sep 17 '15 13:09 lmignot

I've been using the following fix as to only target IE11:

_:-ms-fullscreen,
md-toast {
    height: 0px;
}

loic avatar Sep 17 '15 16:09 loic

Can also use

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
     md-toast {
        height: 0px;
    }
}

danivicario avatar Sep 18 '15 08:09 danivicario

Can't reproduce on HEAD (v1.0.4)

EladBezalel avatar Jan 29 '16 13:01 EladBezalel