material icon indicating copy to clipboard operation
material copied to clipboard

fab-speed-dial: doesn't open when it starts in a closed sidenav

Open tleluc opened this issue 9 years ago • 3 comments

FAB Speed Dial works with locked Sidenav, but won't open when inside toggled Sidenav

http://codepen.io/anon/pen/Xpmqvp (toggle right Sidenav)

Angular Version: 1.5.5 Angular Material Version: 1.1.1

tleluc avatar Jan 09 '17 18:01 tleluc

I've updated the CodePen to 1.1.14 and this is still an issue.

Splaktar avatar Mar 28 '19 05:03 Splaktar

We've had issues in the past where components like textarea and md-virtual-repeat had some of their sizing calculations broken because they tried to calculate the size when the Sidenav was closed.

Here are some possibly related fixes

  • https://github.com/angular/material/pull/8657
  • https://github.com/angular/material/pull/9512
  • https://github.com/angular/material/pull/9809

Alternatively, this may be something related to evaluating the scope when the component is inside of a Sidenav. If that's the case, https://github.com/angular/material/issues/11660 may be a related issue for md-calendar in a Sidenav.

Splaktar avatar Mar 28 '19 07:03 Splaktar

It looks like it gets stuck with the md-animations-waiting class and it never transitions to the _md-animations-ready class. The component probably needs to listen for the resize event on the $window before setting up its animations for the first time, if it's inside of a closed Sidenav.

Splaktar avatar Mar 28 '19 08:03 Splaktar