Hi folks,
I have an issue with scrollToNow or scrollToDate function of the scheduler component.
const scheduler = new Scheduler({
appendTo : 'container',
resources,
events,
startDate : new Date(2017, 0, 1, 6),
endDate : new Date(2017, 0, 1, 20),
viewPreset : 'hourAndDay',
rowHeight : 50,
barMargin : 5,
multiEventSelect : true,
columns : [
{ text : 'Name', field : 'name', width : 130 }
],
tbar:[
{
type: "button",
ref: "today",
color: "b-rounded b-raised",
icon: 'b-fa b-fa-compress-arrows-alt',
onClick: () => scheduler.scrollToNow( { block: "center", animate: true, highlight: true, extendTimeAxis:false })
},
]
});
This repro is a modified Basic example. Timespan 06.01.2017 to 20.06.2017. Clicking on the button focus 15.03.2024 which is out of timerange.
Do i missunderstand something or is it a bug?
regards