Skip to content
Snippets Groups Projects
Commit 8ba35037 authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

bug: fix read more component stutter when content height changes

parent 3f218e97
No related branches found
No related tags found
No related merge requests found
...@@ -13,11 +13,13 @@ export const readmoreAnimations : AnimationTriggerMetadata = trigger('collapseSt ...@@ -13,11 +13,13 @@ export const readmoreAnimations : AnimationTriggerMetadata = trigger('collapseSt
{ params : { collapsedHeight : 45, fullHeight : 200 } } { params : { collapsedHeight : 45, fullHeight : 200 } }
), ),
state('visible', state('visible',
style({ 'height' : '{{ fullHeight }}px' }), style({ 'height' : '*' }),
{ params : { collapsedHeight : 45, fullHeight : 200 } } { params : { collapsedHeight : 45, fullHeight : 200 } }
), ),
transition('collapsed => visible',[ transition('collapsed => visible',[
animate('180ms') animate('180ms', style({
'height' : '{{ fullHeight }}px'
}))
]), ]),
transition('visible => collapsed',[ transition('visible => collapsed',[
animate('180ms') animate('180ms')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment