Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

md-fab-speed-dial: does not animate the first time #3349

Closed
ghost opened this issue Jun 18, 2015 · 6 comments
Closed

md-fab-speed-dial: does not animate the first time #3349

ghost opened this issue Jun 18, 2015 · 6 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jun 18, 2015

In angular-material v0.10.0, the md-fab-speed-dial component does not animate the first time it is hovered or touched. The embedded example on https://material.angularjs.org/latest/#/demo/material.components.fabSpeedDial works properly, but the supplied CodePen has the same issue. This occurs in Chrome 43 and Internet Explorer 11. I have not tested other browsers.

When the action buttons are hidden, the .md-fab-action-item does not have its transform property set before it is activated. After it has been activated, it has. The embedded example has its transform property set before it is even opened for the first time, so that might be what's going wrong.

@ryanstrandt
Copy link

I am having the same problem. Is there something else we are missing.

@ryanstrandt
Copy link

I looked again and realized that I did not update my css file when I updated the script to 0.10. Once I added 0.10 of the css file as well then it worked for me.

@ghost
Copy link
Author

ghost commented Jun 21, 2015

Good to hear! This did not fix it for me though, I'm still having the same issue.

@topherfangio topherfangio self-assigned this Jun 23, 2015
@topherfangio
Copy link
Contributor

Hi guys, I will take a look and see if I can figure this out. I had experienced this a few times in the past, but I thought it was an issue with the automatic browser reload I was using because I could refresh the page and it went away. Perhaps it is a timing/initialization issue.

topherfangio added a commit that referenced this issue Jul 6, 2015
the speed dial was not properly initializing it's transforms, so
the first time it was opened, it would not animate properly.

closes #3349
topherfangio added a commit that referenced this issue Jul 6, 2015
 * fixes ability to use ng-hide: the animations were not properly
   calling the `done()` callback, so the `ng-animate` class was
   never being removed

 * you can now use ng-repeat for the speed dial's action items
   also updated docs to have fewer but more complex examples

 * the speed dial was not properly initializing it's transforms,
   so the first time it was opened, it would not animate properly

closes #3313, closes #3224, closes #3349
@ghost
Copy link
Author

ghost commented Jul 7, 2015

Great, thanks!

@ronycohen
Copy link

Hello,

I'm having the same issue currently. (angular-material "version": "1.0.6")
the md-fab-speed-dial component does not animate the first time it is hovered or touched.
Would you please tell me what I missed ?

 <link rel="stylesheet" href="lib/angular-material/angular-material.min.css">

 <!--Version 1.4.3-->
    <script src="lib/angular-animate/angular-animate.min.js"></script>
    <script src="lib/angular-aria/angular-aria.min.js"></script>
    <script src="lib/angular-messages/angular-messages.min.js"></script>

 <!--Version 1.0.6-->
    <script src="lib/angular-material/angular-material.min.js"></script>
 <md-fab-speed-dial md-open="fab.isOpen" md-direction="up"
                           class="md-fab-bottom-right md-scale" >
            <md-fab-trigger>
                <md-button aria-label="menu" class="md-fab md-warn">
                    <md-icon md-font-icon="fa-users" class="fa fab-button"></md-icon>
                </md-button>
            </md-fab-trigger>

            <md-fab-actions>
                <md-button ng-click="action()" class="md-raised light-bg">
                    TEST1
                </md-button>
                <md-button  ng-click="action()"
                            class="md-raised">
                    TEST2

                </md-button>
                <md-button  ng-click="action()"
                            class="md-raised">
                    TEST3

                </md-button>
                <md-button  ng-click="action()"
                            class="md-raised">
                    TEST4

                </md-button>

            </md-fab-actions>

        </md-fab-speed-dial>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants