Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fix(WeekViewTimes): Fix event widths and positioning to match the day…

… columns
  • Loading branch information...
Matt Lewis
Matt Lewis committed Dec 1, 2015
1 parent 25d35bb commit 3dfe8827b0f3097e817df30957f7a2ef50122e51
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/templates/calendarWeekView.html
@@ -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'"

0 comments on commit 3dfe882

Please sign in to comment.
You can’t perform that action at this time.