[Templates] Check for availability of timespan

...as ordering changes due to change from templateUrl to template
may mean this is not available when first initialized.
This commit is contained in:
Victor Woeltjen 2016-02-26 15:50:07 -08:00
parent f3fd2e67fc
commit fe419714f5

View File

@ -22,10 +22,10 @@
<div class="t-timeline-gantt l-timeline-gantt s-timeline-gantt"
title="{{model.name}}"
ng-controller="TimelineGanttController as gantt"
ng-style="{
ng-style="timespan ? {
left: gantt.left(timespan, parameters.scroll, parameters.toPixels) + 'px',
width: gantt.width(timespan, parameters.scroll, parameters.toPixels) + 'px'
}">
} : {}">
<div class="bar">
<span class="s-activity-type ui-symbol">