Open mast0r opened 9 years ago
Hi,
This is actually expected behaviour. This function uses setWindow with a start and end time. If you print these start and end times, some of them will be in a hidden timeslot. Hence you don't go past it until you reach the other end of the slot.
If I understand correctly, you took these buttons and their code from our example. These examples mean to show how you can extend vis using simple code. These examples are examples: they do not provide code that will work if you alter the conditions in which it worked. The API on the other hand is supposed to work regardless of the usage of our supplied options. Your case here is because you want to set the window with a start time that is hidden. The timeline has thus decided to respect that and show you what it could considering the hidden dates.
I do agree however, that some additional support functions for handling hidden dates would be nice. To simplify the date time arithmetic when using hidden dates. This is on our to do list.
Regards,
Alex
Hi,
Does this answer your question? If so, I'll edit the title of this issue to reflect our todo.
Regards,
Alex
closed as this is a feature request which will be added on the website www.visjs.org/featureRequests.html. Discussion can continue here.
Reopening as Feature-Request issue (see #2114). Everybody: Please feel free to implement this!
I have found a strange behavior while moving a timeline with a navigation buttons. If the "hiddenDates" option is set then a timeline active window "snaps" the start or end time of the hidden date.
Please check this example: http://jsfiddle.net/y0h37tt0/2/
All you need to do to reproduce it is click on the "Move left" button two or three times. It a timeline reaches "6:00" then it is not moved but stretched.