StephenChou1017 / react-big-scheduler

A scheduler and resource planning component built for React and made for modern browsers (IE10+)
https://stephenchou1017.github.io/scheduler/#/
MIT License
757 stars 414 forks source link

Month View selectDate not going to selected date, only changes month #98

Open jckozy86 opened 5 years ago

jckozy86 commented 5 years ago

When i select on the month view a specific date, the application moves to the specified month, but remains on the day of the month that is equal to "today"... so if it is the 12th of February and i select date of March 20th, the application redirects me to March, but i see in front of me March 12th instead of March 20th.

Is there a way to force a center of the day or perhaps put the date selected to attempt to be as far left as possible? (or as far right... )

This also happens on the Day view with the time of day.

StephenChou1017 commented 5 years ago

@jckozy86 Hi, you can customize SchedulerData.behaviors.getScrollSpecialMomentFunc to achieve this.

jannat412 commented 4 years ago

@StephenChou1017 can you share an example for getScrollSpecialMomentFunc