md-toast makes scroll bar appear during animation when positionned bottom
Hi guys,
Thanks for your constant enhancement of angular material design.
As you can see on CodePen where i reused the doc demo, the scroll bar appears during the appear/disappear animation of a md-toast component positioned at bottom.
It is certainly caused by the fact that the md-toast component is first created at position documents' height + its own height and then it goes up a position documents' height.
On the other hand, this event doesn't appear when the toast is positioned top even if it's animation shows him appearing from a higher position.
Thank you,
Izcalli
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
to get rid of scrollbar, just put overflow:hidden to body.
In my case i've solved attaching the controller which control the toast to the body element.
+1
Works fine on online Docs.
It works in the demo page because the demo's container has overflow: hidden which is added as part of the .demo-content class. Look at the codepen posted in the first comment here; it's broken there because its container does not have overflow: hidden.
If this isn't going to be fixed, then it should be documented that to use mdToast you have to set its container to have overflow: hidden.
+1
@rscottfree - Excellent point. This needs either a doc change or component improvement.
I think a component improvement of adjusting the positioning or improving the SCSS.