material
material copied to clipboard
IE 11 md-toast needs height defined for auto centering
(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%;
}
Not sure if this is at all related to #1773
Correct behavior in Chrome:
Bad layout in IE11:
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
Pull request should be posted by EOW pending internal review @Paychex