Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Commit

Permalink
fix(WeekViewTimes): Fix event widths and positioning to match the day…
Browse files Browse the repository at this point in the history
… columns
  • Loading branch information
Matt Lewis committed Dec 1, 2015
1 parent 25d35bb commit 3dfe882
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/templates/calendarWeekView.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@
class="cal-row-fluid "
ng-repeat="event in vm.view.events track by event.$id">
<div
ng-class="'cal-cell' + (vm.showTimes ? 1 : event.daySpan) + ' cal-offset' + event.dayOffset + ' day-highlight dh-event-' + event.type + ' ' + event.cssClass"
ng-style="{top: vm.showTimes ? ((event.top + 2) + 'px') : 'auto', position: vm.showTimes ? 'absolute' : 'inherit'}"
ng-class="'cal-cell' + (vm.showTimes ? 1 : event.daySpan) + (vm.showTimes ? '' : ' cal-offset' + event.dayOffset) + ' day-highlight dh-event-' + event.type + ' ' + event.cssClass"
ng-style="{
top: vm.showTimes ? ((event.top + 2) + 'px') : 'auto',
position: vm.showTimes ? 'absolute' : 'inherit',
width: vm.showTimes ? (vm.dayColumnDimensions.width + 'px') : '',
left: vm.showTimes ? (vm.dayColumnDimensions.width * event.dayOffset) + 15 + 'px' : ''
}"
data-event-class
mwl-draggable="event.draggable === true"
axis="vm.showTimes ? 'xy' : 'x'"
Expand Down

0 comments on commit 3dfe882

Please sign in to comment.