Hi there,
It seems that some parts of the timeline are failing.
If i'm calling setTimelineRange there is an js error in the ISC_Calendar.js

Once more, this bug was not happening in an old Smartclient 10.0 Version (See the changing week number)
This would be the expected behaviour

Code for reproduction:
Best regards
It seems that some parts of the timeline are failing.
If i'm calling setTimelineRange there is an js error in the ISC_Calendar.js
Once more, this bug was not happening in an old Smartclient 10.0 Version (See the changing week number)
This would be the expected behaviour
Code for reproduction:
Code:
isc.Button.create({
"ID" : "a",
"click" : function () {
myTimeline.setTimelineRange(new Date(2016, 1, 15), new Date(2016, 2, 13));
myTimeline.setData([]);
},
"title" : "Set data",
});
isc.Timeline.create({
"ID" : "myTimeline",
"width" : "100%",
autoDraw : true,
top : 50,
"height" : "100%",
"overflow" : "auto",
"hideUsingDisplayNone" : false,
"startDate" : new Date(2016, 0, 18),
"endDate" : new Date(2016, 1, 14),
"headerLevels" :
[{
"unit" : "week"
}, {
"unit" : "day",
"titleFormatter" : function (headerLevel, startDate, endDate, defaultValue, viewer) {
return startDate.getDay()
},
"headerWidth" : 39
}
],
"canEditEvents" : false,
"canCreateEvents" : false,
"autoFetchData" : true,
"showControlsBar" : false,
"firstDayOfWeek" : 1,
"weekPrefix" : "Week",
"todayBackgroundColor" : "#E0E0E0",
"showEventHeaders" : false,
"showEventDescriptions" : false,
"eventSnapGap" : 37,
"labelColumnWidth" : 200,
"alternateLaneStyles" : true,
"laneFields" :
[{
"name" : "title",
"title" : " ",
"type" : "text",
"canEdit" : false
}
],
"lanes" :
[{
"hierarchyLevel" : 0,
"height" : 30,
"name" : "1",
"title" : "ExampleLane"
}
],
"data" :
[]
})
Comment