[Timeline] Check for existence of timespan

...before attempting to calculate a width based on it.
Fixes #978.
This commit is contained in:
Victor Woeltjen 2016-05-31 16:41:30 -07:00
parent dc577d4c24
commit cc7d0477e8

View File

@ -20,7 +20,7 @@
at runtime from the About dialog for additional information.
-->
<div class="t-timeline-gantt l-timeline-gantt s-timeline-gantt"
ng-class="{ sm: gantt.width(timespan, parameters.scroll, parameters.toPixels) < 25 }"
ng-class="timespan ? { sm: gantt.width(timespan, parameters.scroll, parameters.toPixels) < 25 } : {}"
title="{{model.name}}"
ng-controller="TimelineGanttController as gantt"
ng-style="timespan ? {