React-big-calendar: scrollToTime prop is unintuitive

Created on 28 Jun 2017  路  5Comments  路  Source: jquense/react-big-calendar

First off, thank you for maintaining this awesome library! Though I have a question/request:

In my project I only need the week view. Setting the scrollToTime prop is very unintuitive in my opinion. When setting the property initially everything works fine but setting it a second time nothing happens (this is especially a problem when asynchronously loading events and setting the scrolltime according tho their start/end times).

The component only updates its scrolled time once the user navigates or when the prop is changed again (creating this off by one feeling: the scrolled time is always the value I set it before the one that the component is displaying).

I don't know if this is expected or wanted behavior but there should be at least an option where the scrollToTime prop can be a completely controllable prop of the component.

Most helpful comment

We have a similar requirement in DAY view wherein, the scrollToTime value changes on user interaction. But currently the calendar doesn't scroll to the updated scrollToTime value or sometime scrolls to an incorrect time slot.
Is this a bug or scrollToTime prop only works on the initial load?
I've set up a code sandbox to repro the issue: https://codesandbox.io/s/B225Y0EJ

All 5 comments

We have a similar requirement in DAY view wherein, the scrollToTime value changes on user interaction. But currently the calendar doesn't scroll to the updated scrollToTime value or sometime scrolls to an incorrect time slot.
Is this a bug or scrollToTime prop only works on the initial load?
I've set up a code sandbox to repro the issue: https://codesandbox.io/s/B225Y0EJ

Hi

I am trying to scroll down when I selecting a new slot to create an event but the calendar doesn't scroll below the current browser window height.

In the screenshot below, I am trying to scroll down below 12:30 pm but can't scroll down below the current browser window. Please do let me know why I am not able to scroll down or have a scroll into view working.

Thanks

screen shot 2017-10-11 at 14 35 35

@jquense no comment on why this issue was closed?

what was the solution???

@Way-U-Need the issue was closed without providing any further information by @jquense

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiaaaa123 picture tiaaaa123  路  4Comments

connercms picture connercms  路  3Comments

KatiaPosPago picture KatiaPosPago  路  3Comments

Hector26 picture Hector26  路  3Comments

martinnov92 picture martinnov92  路  3Comments