Skip to content

Commit 7b52366

Browse files
author
Matt Lewis
committed
fix(monthView): make collapse animation smoother
1 parent 86ea012 commit 7b52366

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/month/calendarOpenDayEvents.component.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ import { CalendarEvent } from 'calendar-utils';
4343
animations: [
4444
trigger('collapse', [
4545
transition('void => *', [
46-
style({ height: 0 }),
47-
animate('150ms linear', style({ height: '*' }))
46+
style({ height: 0, overflow: 'hidden' }),
47+
animate('150ms', style({ height: '*' }))
4848
]),
4949
transition('* => void', [
50-
style({ height: '*' }),
51-
animate('150ms linear', style({ height: 0 }))
50+
style({ height: '*', overflow: 'hidden' }),
51+
animate('150ms', style({ height: 0 }))
5252
])
5353
])
5454
]

0 commit comments

Comments
 (0)