From 7b52366bdf44a1b8d83710b2cc326be49757eeec Mon Sep 17 00:00:00 2001 From: Matt Lewis Date: Mon, 14 Aug 2017 12:00:51 +0100 Subject: [PATCH] fix(monthView): make collapse animation smoother --- src/components/month/calendarOpenDayEvents.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/month/calendarOpenDayEvents.component.ts b/src/components/month/calendarOpenDayEvents.component.ts index 1312ecf0e..c1345e3dc 100644 --- a/src/components/month/calendarOpenDayEvents.component.ts +++ b/src/components/month/calendarOpenDayEvents.component.ts @@ -43,12 +43,12 @@ import { CalendarEvent } from 'calendar-utils'; animations: [ trigger('collapse', [ transition('void => *', [ - style({ height: 0 }), - animate('150ms linear', style({ height: '*' })) + style({ height: 0, overflow: 'hidden' }), + animate('150ms', style({ height: '*' })) ]), transition('* => void', [ - style({ height: '*' }), - animate('150ms linear', style({ height: 0 })) + style({ height: '*', overflow: 'hidden' }), + animate('150ms', style({ height: 0 })) ]) ]) ]