Our powerful JS Calendar component


Post by tokytok »

Hi,
I need to use eventHeight: auto with agenda view.
If you open the basic calendar example and add :

modes: {
    agenda: {
        eventHeight: 'auto',
    }
}

When you switch to agenda, you will have an error console :

Error: Incorrect type for Rectangle.height, got "NaN" (expected a Number)

And on my project with a lot of event, it freeze screen during 2 secondes ...

How to resolve it ?


Post by Animal »

I refer you back to the solution here: viewtopic.php?p=79413#p79413

This fix will be in the next release.


Post by tokytok »

Great ! It will be in the 4.0.4 ? Do you have a date ?


Post by Animal »

Yes, it's in the codebase, no date that I know of yet, but we release regularly. Should be soon.

Also the "Custom rendering" example was updated to have a custom renderer in its Agenda View


Post by tokytok »

I tried the 4.0.5 and the eventHeight auto not working :
Image

I just take the react app "out of the box" and add the props :

modes={{
          year: false,
          agenda: {
            eventHeight: 'auto',
          }
}}

Post by Animal »

There is no height:auto for AgendaView.

If you need custom event rendering, in AgendaView, see this example: https://www.bryntum.com/examples/calendar/custom-rendering/


Post by tokytok »

Perfect !


Post Reply