-
Notifications
You must be signed in to change notification settings - Fork 6.7k
fix(collapse): avoid initial animation #5199
fix(collapse): avoid initial animation #5199
Conversation
Can you create a plunker with the old broken behavior and another plunker on how it end with your fix? The test stuff is really nice (that cleanup always is handy) but this would need another test if we end deciding in merging this. Thank you! |
I was able to reproduce this only with accordion plugin. For this reason i don't have any idea how to test the fix. Any suggestion are welcomed. Before: http://plnkr.co/edit/l0Qc5rWfgCNhx4hU4JZx?p=preview |
What should I do / see there? I don't see any difference when loading. |
ahh it was a false result. i will try to include some 3rd party libs. I'm experiencing a flickering a lot when using I will try to create another plnkr soon. |
I identified the following problems:
The problem (flickering) is only visible when you have some complex styles to render. I created a plnkr and you can see the describe behaviour with some breakpoints (on line 31 and line 44). |
I had a look on #4414 . It seems it's the same problem, i created a plunker demonstrating the fix: |
This needs a test still in order for us to accept it. |
@@ -1,55 +1,76 @@ | |||
describe('collapse directive', function() { | |||
describe('collapse directive', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whitespace change is unnecessary - this will need to all be changed back on merge.
Minus all of the whitespace changes that should be undone, what are your thoughts on this @Foxandxss ? |
Can you squash your commits into 1? |
Fixes: #5192
Fixes: #4414