material icon indicating copy to clipboard operation
material copied to clipboard

IE 11 md-toast needs height defined for auto centering

Open jsr6720 opened this issue 11 years ago • 3 comments

(From the code pen example)

$mdToast.show(
                                $mdToast.simple()
                                    .content(translation)
                                    .position('top center')
                                    .parent(container)
                                    .hideDelay(6000)
                            );

Center works fine in FF and Chrome. Left aligns in IE 11. CSS fix for working in IE 11.

md-toast {
    width: 100%;
}

jsr6720 avatar Sep 30 '15 20:09 jsr6720

Not sure if this is at all related to #1773

jsr6720 avatar Sep 30 '15 20:09 jsr6720

Correct behavior in Chrome: chromesimpletoastlayout

Bad layout in IE11: ie11toastformattingissue

Reproduction steps: Click on 'Show Simple' on the following demos: https://material.angularjs.org/HEAD/#/demo/material.components.toast https://material.angularjs.org/0.11.2/#/demo/material.components.toast

Splaktar avatar Oct 04 '15 00:10 Splaktar

Pull request should be posted by EOW pending internal review @Paychex

jsr6720 avatar Oct 07 '15 19:10 jsr6720