material icon indicating copy to clipboard operation
material copied to clipboard

md-toast makes scroll bar appear during animation when positionned bottom

Open NicolasVargas opened this issue 11 years ago • 38 comments

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

NicolasVargas avatar May 21 '15 09:05 NicolasVargas

+1

TalPasi avatar May 21 '15 15:05 TalPasi

+1

Lenninlasd avatar May 21 '15 16:05 Lenninlasd

+1

mpelts avatar Jun 07 '15 20:06 mpelts

+1

webley avatar Jun 08 '15 10:06 webley

+1

ghost avatar Jun 16 '15 14:06 ghost

+1

ricardobfa avatar Jun 16 '15 20:06 ricardobfa

+1

visurel avatar Jun 19 '15 17:06 visurel

+1

theblang avatar Jun 25 '15 01:06 theblang

+1

vigneshdv avatar Jul 17 '15 18:07 vigneshdv

+1

karthikcsridhar avatar Aug 05 '15 23:08 karthikcsridhar

+1

matpag avatar Aug 07 '15 12:08 matpag

+1

giulioprovasi avatar Aug 18 '15 12:08 giulioprovasi

+1

thomasbertet avatar Aug 28 '15 08:08 thomasbertet

to get rid of scrollbar, just put overflow:hidden to body.

ghost avatar Aug 28 '15 08:08 ghost

In my case i've solved attaching the controller which control the toast to the body element.

matpag avatar Aug 28 '15 09:08 matpag

+1

YashdalfTheGray avatar Sep 04 '15 02:09 YashdalfTheGray

Works fine on online Docs.

ThomasBurleson avatar Sep 04 '15 16:09 ThomasBurleson

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.

rscottfree avatar Sep 04 '15 16:09 rscottfree

+1

HartgerV avatar Sep 07 '15 13:09 HartgerV

@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.

ThomasBurleson avatar Sep 07 '15 18:09 ThomasBurleson