There is a problem when headerWidth in timeline is changed from default value.
I tried this in feature explorer “simple timeline” example.
With “headerWidth: 60” (default value) a new event is from 12:00 am to 12:00 am next day = 24 hours. This is independently of the position of the mouse click in left or right part of day
If I set “headerWidth:50” and click on left part of the day (e.g. 7/3) the new event is from 7/2 7:12 pm till 7/4 12:00 am. Clicking the right part of 7/3 the new event is from 7/3 9:36 am till 7/4 2:24 pm.
That’s really a problem, especially when start date is not the day clicked.
I tried this in feature explorer “simple timeline” example.
With “headerWidth: 60” (default value) a new event is from 12:00 am to 12:00 am next day = 24 hours. This is independently of the position of the mouse click in left or right part of day
If I set “headerWidth:50” and click on left part of the day (e.g. 7/3) the new event is from 7/2 7:12 pm till 7/4 12:00 am. Clicking the right part of 7/3 the new event is from 7/3 9:36 am till 7/4 2:24 pm.
That’s really a problem, especially when start date is not the day clicked.
Code:
isc.Timeline.create({ … headerLevels: [ { unit: "week"}, { unit: "day", headerWidth: 50}] … });