diff options
author | MaZderMind | 2015-05-07 21:50:28 +0200 |
---|---|---|
committer | MaZderMind | 2015-05-07 21:51:29 +0200 |
commit | a03e8ec2d5d1aac4a45929a0c51bf705cdb4699d (patch) | |
tree | 41a7a1b8953ec364a868bf02064cf45cbed9fecc | |
parent | 5b2c98cf1d13815f76abee7ac25a0aed93484daa (diff) |
Add a fixed buffer for rounding offsets when scaling time to pixels
Diffstat (limited to '')
-rw-r--r-- | template/assemblies/schedule.phtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml index 8d749ec..b749e0b 100644 --- a/template/assemblies/schedule.phtml +++ b/template/assemblies/schedule.phtml @@ -2,7 +2,7 @@ <div class="scroll-element"> <div class="now"><span>now</span></div> <? foreach($schedule->getSchedule() as $roomname => $events): ?> - <div class="room <? if($roomname == $room->getSlug()): ?>highlight<? endif ?>" style="width: <?=ceil($schedule->getDurationSum() / $schedule->getScale())?>px"> + <div class="room <? if($roomname == $room->getSlug()): ?>highlight<? endif ?>" style="width: <?=round($schedule->getDurationSum() / $schedule->getScale()) + 50?>px"> <? foreach($events as $event): ?> <div class="block <?=h(@$event['special'] ?: 'event')?>" |