Skip to content

Commit

Permalink
fix(day-view): make sure segmentHeight is passed to a custom template
Browse files Browse the repository at this point in the history
Fixes #514
  • Loading branch information
mattlewis92 committed Jun 18, 2018
1 parent c505d38 commit 79dd846
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/day/calendar-day-view-hour-segment.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { DayViewHourSegment } from 'calendar-utils';
<ng-template
#defaultTemplate
let-segment="segment"
let-locale="locale">
let-locale="locale"
let-segmentHeight="segmentHeight">
<div
class="cal-hour-segment"
[style.height.px]="segmentHeight"
Expand All @@ -23,7 +24,8 @@ import { DayViewHourSegment } from 'calendar-utils';
[ngTemplateOutlet]="customTemplate || defaultTemplate"
[ngTemplateOutletContext]="{
segment: segment,
locale: locale
locale: locale,
segmentHeight: segmentHeight
}">
</ng-template>
`
Expand Down

0 comments on commit 79dd846

Please sign in to comment.